]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Revert "Silence compiler warning"
authorTomas Vondra <tomas.vondra@postgresql.org>
Sun, 4 Aug 2019 18:19:54 +0000 (20:19 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sun, 4 Aug 2019 21:37:33 +0000 (23:37 +0200)
commitd8453ccfbfd6bb1782e71beb28acf4025a9a01ce
tree359416924707a7a1136831db04672254a9076b03
parentdf521ab79547b82471126e54e9dc7fead4a5a4fb
Revert "Silence compiler warning"

This reverts commit 9dc122585551516309c9362e673effdbf3bd79bd.

As committed, statement sampling used the existing duration threshold
(log_min_duration_statement) when decide which statements to sample.
The issue is that even the longest statements are subject to sampling,
and so may not end up logged. An improvement was proposed, introducing
a second duration threshold, but it would not be backwards compatible.
So we've decided to revert this feature - the separate threshold should
be part of the feature itself.

Discussion: https://postgr.es/m/CAFj8pRDS8tQ3Wviw9%3DAvODyUciPSrGeMhJi_WPE%2BEB8%2B4gLL-Q%40mail.gmail.com
src/backend/tcop/postgres.c