Re: PostgreSQL Backup Script

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: PostgreSQL Backup Script
Дата
Msg-id 20050401135030.GA26112@wolff.to
обсуждение исходный текст
Ответ на Re: PostgreSQL Backup Script  ("Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com>)
Список pgsql-php
On Fri, Apr 01, 2005 at 11:18:13 +0530,
  "Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com> wrote:
> > I suggest allowing the 'postgres' user to connect with 'ident sameuser'
> > in pg_hba.conf from the localhost only, then always just run pg_dump as
> > 'postgres'.
>
> That means
>
> # TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
> host    <mydb>  <myuser>         localhost     255.255.255.255
> ident sameuser
>
> only <myuser> will NOT be asked for password when it does
> pg_dump -U <myuser>
> when logged in to its shell account with <myuser>
> and If I run a crontab with user <myuser> the above lines again stands true.
>
>
> What you say ?

Don't do this as a host entry if your OS supports domain sockets with
getpeerid. Use a 'local' entry. That way you don't need to run an ident
server.

You also have the option to set up custom map entries so that the OS user
is not the same as the DB user.

В списке pgsql-php по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: migrate data
Следующее
От: Eko Budi Setiyo
Дата:
Сообщение: sql command