Re: Locking a database - Mailing list pgsql-general

From Michelle Murrain
Subject Re: Locking a database
Date
Msg-id 0104301444530B.01196@chicago.murrain.net
Whole thread Raw
In response to Locking a database  ("Jose Norberto" <nn_jose@hotmail.com>)
List pgsql-general
On Monday 30 April 2001 02:37 pm, Jose Norberto wrote:
> Hello all!
> I want to make a pg_dump of a database, but I must be sure that no one is
> logged in. Which is the best way to do it?
> Thanks in advance

Change the permissions in the pg_hba.conf file
(/usr/local/pgsql/data/pg_hba.conf is the default placement)

The bottom of the file looks like:

# Put your actual configuration here
# ----------------------------------

# This default configuration allows any local user to connect as any
# PostgreSQL username, over either UNIX domain sockets or IP:

local        all                                           trust
host         all         127.0.0.1     255.255.255.255     trust

# If you want to allow non-local connections, you will need to add more
# "host" records (and don't forget to start the postmaster with "-i"!).

# CAUTION: if you are on a multiple-user machine, the above default
# configuration is probably too liberal for you --- change it to use
# something other than "trust" authentication.

Michelle
--
------------
Michelle Murrain, Ph.D.
President
Norwottuck Technology Resources
mpm@norwottuck.com
http://www.norwottuck.com

pgsql-general by date:

Previous
From: Michelle Murrain
Date:
Subject: wierd problems with DBI/DBD::pg?
Next
From: "Thomas F. O'Connell"
Date:
Subject: Re: do functions cache views?