Solved

running database in single-user mode

Posted on 2011-03-02
3
1,504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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