?
Solved

running database in single-user mode

Posted on 2011-03-02
3
Medium Priority
?
1,975 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 40

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 40

Accepted Solution

by:
lcohan earned 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
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.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

864 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