Re: Locking a database

Поиск
Список
Период
Сортировка
От Michelle Murrain
Тема Re: Locking a database
Дата
Msg-id 0104301444530B.01196@chicago.murrain.net
обсуждение исходный текст
Ответ на Locking a database  ("Jose Norberto" <nn_jose@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Michelle Murrain
Дата:
Сообщение: wierd problems with DBI/DBD::pg?
Следующее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: do functions cache views?