Re: log_line_prefix: make it possible to add the search_path

Поиск
Список
Период
Сортировка
От Pierre
Тема Re: log_line_prefix: make it possible to add the search_path
Дата
Msg-id 44833723.fMDQidcC6G@entrouvert-pierred
обсуждение исходный текст
Ответ на Re: log_line_prefix: make it possible to add the search_path  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: log_line_prefix: make it possible to add the search_path  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On Monday, July 25, 2022 11:52:41 AM CEST Alvaro Herrera wrote:
> On 2022-Jul-25, Pierre Ducroquet wrote:
> > This is great for performance, but several tools are lacking around this
> > usecase by not showing the schema, one of them being log_line_prefix.
> > 
> > The attached patch implements this, using %S. I've not written the
> > documentation yet, since I'm not sure this would be acceptable as is, or
> > if a more "generic" method should be used (I thought of %{name} to fetch
> > an arbitrary GUC, but did not implement due to a lack of need for that
> > feature)
> It seems that this would be too noisy to be truly usable.  What if we
> emitted a log line when the variable changed, and the value that's in
> use when the connection starts?

Then the log files would be filled by these messages, only to be able to make 
use of the few slow queries that are logged during the day. Or it would need 
to be a log before each slow query. I'm not sure how well it would work.





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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: COPY FROM FORMAT CSV FORCE_NULL(*) ?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: fairywren hung in pg_basebackup tests