Re: Log a sample of transactions - Mailing list pgsql-hackers

From Adrien NAYRAT
Subject Re: Log a sample of transactions
Date
Msg-id 9ca67528-1685-f74c-3f48-5840dc7755f2@anayrat.info
Whole thread Raw
In response to Re: Log a sample of transactions  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
On 1/16/19 10:09 AM, Masahiko Sawada wrote:
> Since we set xact_is_sampled only when transaction starts and see it
> during transaction we cannot disable logging during transaction and
> vice versa. I can imagine the use case where user wants to disable
> logging during transaction. So it might be better to also check if
> log_xact_sample_rate > 0 in check_log_duration().

I Agree, here is third patch.

Thanks!


Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: speeding up planning with partitions
Next
From: Laurenz Albe
Date:
Subject: Re: Libpq support to connect to standby server as priority