| От | Tom Lane |
|---|---|
| Тема | Re: pg_primary_conninfo |
| Дата | |
| Msg-id | 19080.1293548308@sss.pgh.pa.us обсуждение |
| Ответ на | pg_primary_conninfo (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: pg_primary_conninfo
|
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> Attached patch implements a function called pg_primary_conninfo() that
> returns, well, the primary_conninfo used on the standby when in
> streaming replication mode (otherwise NULL).
> Objections?
What's the use case? And aren't there security reasons to NOT expose
that? It might contain a password for instance.
> + if (recptr.xlogid == 0 && recptr.xrecoff == 0 && conninfo[0] != '\0')
> + PG_RETURN_NULL();
This test seems a bit incoherent.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера