Re: Running psql commands from a remote location & pg_hba.conf?

Поиск
Список
Период
Сортировка
От Birchall, Austen
Тема Re: Running psql commands from a remote location & pg_hba.conf?
Дата
Msg-id 4E154FB60786D74BB4DFDC97BF991CAC0761A9@EXXCMPD1DAG2.cmpd1.metoffice.gov.uk
обсуждение исходный текст
Ответ на Re: Running psql commands from a remote location & pg_hba.conf?  (Luca Ferrari <fluca1978@infinito.it>)
Ответы Re: Running psql commands from a remote location & pg_hba.conf?  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-novice
Hi Luca

And thanks once again for your assistance. Yes a role would work although I would have to remember to add any new users
toit as they are created. 

I guess one of the questions I am asking is:

Is there a way to run psql scripts in a database fired off from a remote location without going down the trust
authentication'route' in pg_hba.conf? 

Austen



On Mon, Aug 5, 2013 at 3:45 PM, Birchall, Austen wrote:
> Am I right to presume that I have to change pg_hba.conf to
>
> host    db1     monitor         123.0.0.1/32    trust
> host    db1     user1           123.0.0.1/32    ident
> host    db1     user2           123.0.0.1/32    ident
>
> then continue this format with individual entries for all the users in db1?

Not sure this is what you are looking for, but why not defining a role that contains all the users and then add a
singleentry related to such role? 
See http://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html -> user

Luca


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

Предыдущее
От: Luca Ferrari
Дата:
Сообщение: Re: Running psql commands from a remote location & pg_hba.conf?
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: Running psql commands from a remote location & pg_hba.conf?