Solved

running database in single-user mode

Posted on 2011-03-02
3
1,308 Views
Last Modified: 2012-06-27
HI
I am running Postgres on Fedora 14 64 bit using the following command:
> service postresql start

I would like to know how to set database to single-user mode in order to run an upgrade process on database, and return it back to regular mode when upgrade process finish.

Thanks
0
Comment
Question by:elimesika
  • 2
3 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 35021191
One way to do this is to shut down the server and start a single-user PostgreSQL server with the -P option included on its command line.
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 35021254
My bad.... -D not P please see below:

http://www.postgresql.org/docs/8.3/static/app-postgres.html

"To start a single-user mode server, use a command like

postgres --single -D /usr/local/pgsql/data other-options my_databaseProvide the correct path to the database directory with -D, or make sure that the environment variable PGDATA is set. Also specify the name of the particular database you want to work in. "


0
 
LVL 19

Author Closing Comment

by:elimesika
ID: 35021737
Thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question