Re: New GUC to sample log queries

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: Adrien Nayrat <adrien.nayrat@anayrat.info>, Michael Paquier <michael@paquier.xyz>, David Rowley <david.rowley@2ndquadrant.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2018-07-16T15:24:28Z
Lists: pgsql-hackers
On Sun, Jul 15, 2018 at 6:53 AM, Vik Fearing
<vik.fearing@2ndquadrant.com> wrote:
> Hmm.  Not sure if that last word should be _sample, _sampling, _rate, or
> a combination of those.

+1 for rate or sample_rate.  I think "sample" or "sampling" without
"rate" will not be very clear.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Commits

  1. Use pg_strong_random() to select each server process's random seed.

  2. Use a separate random seed for SQL random()/setseed() functions.

  3. Marginal performance hacking in erand48.c.

  4. Fix latent problem with pg_jrand48().

  5. Silence compiler warning

  6. Add log_statement_sample_rate parameter