Re: Questions on PostGreSQL Authentication mechanism...

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Questions on PostGreSQL Authentication mechanism...
Дата
Msg-id 20100202162338.GB4020@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Questions on PostGreSQL Authentication mechanism...  (dipti shah <shahdipti1980@gmail.com>)
Ответы Re: Questions on PostGreSQL Authentication mechanism...  ("Tim Bruce - Postgres" <postgres@tbruce.com>)
Список pgsql-general
dipti shah escribió:
> Techdb=# show hba_file;
>                hba_file
> --------------------------------------
>  /etc/postgresql/8.4/main/pg_hba.conf
> (1 row)
>
> Moreover, is there anyway to view content of this file from stored in above
> location "Techdb" command prompt itself.
>
> Techdb=# cat  /etc/postgresql/8.4/main/pg_hba.conf;

Probably pg_read_file():

select pg_read_file('pg_hba.conf', 0, 8192);

Note that pg_read_file only allows paths relative to $PGDATA, which is
what you get from SHOW data_directory;

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: relation xxx is still open (Re: Use Trigger to Remove Table ... )
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Connect RDF to PostgreSQL?