Solved

running database in single-user mode

Posted on 2011-03-02
3
1,145 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now