pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid using INFO elevel for what are fundamentally debug message
2+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid using INFO elevel for what are fundamentally debug message
@ 2019-09-07 23:04  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2019-09-07 23:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using INFO elevel for what are fundamentally debug messages.

Commit 6f6b99d13 stuck an INFO message into the fast path for
checking partition constraints, for no very good reason except
that it made it easy for the regression tests to verify that
that path was taken.  Assorted later patches did likewise,
increasing the unsuppressable-chatter level from ALTER TABLE
even more.  This isn't good for the user experience, so let's
drop these messages down to DEBUG1 where they belong.  So as
not to have a loss of test coverage, create a TAP test that
runs the relevant queries with client_min_messages = DEBUG1
and greps for the expected messages.

This testing method is a bit brute-force --- in particular,
it duplicates the execution of a fair amount of the core
create_table and alter_table tests.  We experimented with
other solutions, but running any significant amount of
standard testing with client_min_messages = DEBUG1 seems
to have a lot of output-stability pitfalls, cf commits
bbb96c370 and 5655565c0.  Possibly at some point we'll look
into whether we can reduce the amount of test duplication.

Backpatch into v12, because some of these messages are new
in v12 and we don't really want to ship it that way.

Sergei Kornilov

Discussion: https://postgr.es/m/81911511895540@web58j.yandex.ru
Discussion: https://postgr.es/m/4859321552643736@myt5-02b80404fd9e.qloud-c.yandex.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/db438318997b75f4b40c61258da56384039fa43f

Modified Files
--------------
src/backend/commands/tablecmds.c                   |   4 +-
src/backend/partitioning/partbounds.c              |   4 +-
src/test/modules/Makefile                          |   1 +
src/test/modules/test_misc/.gitignore              |   4 +
src/test/modules/test_misc/Makefile                |  14 +
src/test/modules/test_misc/README                  |   4 +
.../test_misc/t/001_constraint_validation.pl       | 310 +++++++++++++++++++++
src/test/regress/expected/alter_table.out          |  13 -
src/test/regress/expected/create_table.out         |   1 -
src/tools/msvc/Mkvcbuild.pm                        |   5 +-
10 files changed, 340 insertions(+), 20 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Avoid using INFO elevel for what are fundamentally debug message
@ 2019-09-07 23:04  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2019-09-07 23:04 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using INFO elevel for what are fundamentally debug messages.

Commit 6f6b99d13 stuck an INFO message into the fast path for
checking partition constraints, for no very good reason except
that it made it easy for the regression tests to verify that
that path was taken.  Assorted later patches did likewise,
increasing the unsuppressable-chatter level from ALTER TABLE
even more.  This isn't good for the user experience, so let's
drop these messages down to DEBUG1 where they belong.  So as
not to have a loss of test coverage, create a TAP test that
runs the relevant queries with client_min_messages = DEBUG1
and greps for the expected messages.

This testing method is a bit brute-force --- in particular,
it duplicates the execution of a fair amount of the core
create_table and alter_table tests.  We experimented with
other solutions, but running any significant amount of
standard testing with client_min_messages = DEBUG1 seems
to have a lot of output-stability pitfalls, cf commits
bbb96c370 and 5655565c0.  Possibly at some point we'll look
into whether we can reduce the amount of test duplication.

Backpatch into v12, because some of these messages are new
in v12 and we don't really want to ship it that way.

Sergei Kornilov

Discussion: https://postgr.es/m/81911511895540@web58j.yandex.ru
Discussion: https://postgr.es/m/4859321552643736@myt5-02b80404fd9e.qloud-c.yandex.net

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/121e3ceed6d93c2891208005f0b270ee80dc13e7

Modified Files
--------------
src/backend/commands/tablecmds.c                   |   4 +-
src/backend/partitioning/partbounds.c              |   4 +-
src/test/modules/Makefile                          |   1 +
src/test/modules/test_misc/.gitignore              |   4 +
src/test/modules/test_misc/Makefile                |  14 +
src/test/modules/test_misc/README                  |   4 +
.../test_misc/t/001_constraint_validation.pl       | 310 +++++++++++++++++++++
src/test/regress/expected/alter_table.out          |  13 -
src/test/regress/expected/create_table.out         |   1 -
src/tools/msvc/Mkvcbuild.pm                        |   5 +-
10 files changed, 340 insertions(+), 20 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-09-07 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 23:04 pgsql: Avoid using INFO elevel for what are fundamentally debug message Tom Lane <tgl@sss.pgh.pa.us>
2019-09-07 23:04 pgsql: Avoid using INFO elevel for what are fundamentally debug message Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox