Re: Log a sample of transactions

Adrien Nayrat <adrien.nayrat@anayrat.info>

From: Adrien NAYRAT <adrien.nayrat@anayrat.info>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Masahiko Sawada <sawada.mshk@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>, "Nikolay Samokhvalov" <samokhvalov@gmail.com>
Date: 2019-01-18T13:22:50Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Tweak docs for log_statement_sample_rate

On 1/18/19 9:03 AM, Peter Eisentraut wrote:
> But if you have trouble with a specific transaction, how will a setting
> help that randomly logs transactions, not necessarily the one you are
> concerned about?

Yes, it assumes your application performs same type of transaction. 
Maybe the use case is too specific to have this feature in core?