Re: control pg_hba.conf via SQL

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: control pg_hba.conf via SQL
Дата
Msg-id 442BFCA3.2090700@dunslane.net
обсуждение исходный текст
Ответ на Re: control pg_hba.conf via SQL  ("A.M." <agentm@themactionfaction.com>)
Ответы Re: control pg_hba.conf via SQL  (David Fetter <david@fetter.org>)
Список pgsql-hackers
A.M. wrote:
> Could postgres offer at least a read-only view of the data in the interim?
> Ordering could be controlled by line number.
>   

You can get the contents as a single text field like this:

|  select pg_read_file|('pg_hba.conf', 0, 50*1024);


Writing a plperl function that would strip comments and blank lines and 
return the rest as a numbered set of lines would be fairly trivial.


cheers

andrew


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

Предыдущее
От: "A.M."
Дата:
Сообщение: Re: control pg_hba.conf via SQL
Следующее
От: Tony Caduto
Дата:
Сообщение: Re: control pg_hba.conf via SQL