pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't drop NOTICE messages in isolation tests. 2+ messages / 1 participants [nested] [flat]
* pgsql: Don't drop NOTICE messages in isolation tests. @ 2019-07-27 20:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-07-27 20:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't drop NOTICE messages in isolation tests. For its entire existence, isolationtester.c has forced client_min_messages to WARNING, but that seems like a very poor choice of test design. It should be up to individual test scripts to manage whether they emit notices and to ensure that the results are stable. (There were no NOTICE messages in the original set of isolation tests, so this was certainly dead code when committed, but perhaps it was needed at some earlier point.) It's possible that the original motivation was due to platform-dependent variations in the timing of stdout vs. stderr output. That should be moot since commits 73bcb76b7/6eda3e9c2, but just in case, adjust isotesterNoticeProcessor to print to stdout not stderr. (stderr seems like the wrong thing anyway: it should be for error printouts not expected test output.) Testing shows that the notices in insert-conflict-specconflict are indeed a bit timing-unstable on very slow machines, so hide them; maybe we can improve that later. Also, make the notices in plpgsql-toast a bit less verbose than the original code would've had them. Discussion: https://postgr.es/m/14616.1564251339@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ebd49928215e3854d91167e798949a75b34958d0 Modified Files -------------- src/test/isolation/expected/plpgsql-toast.out | 15 ++++++++++----- src/test/isolation/isolationtester.c | 14 +------------- .../isolation/specs/insert-conflict-specconflict.spec | 6 ++++++ src/test/isolation/specs/plpgsql-toast.spec | 10 +++++----- 4 files changed, 22 insertions(+), 23 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Don't drop NOTICE messages in isolation tests. @ 2019-09-10 16:05 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-09-10 16:05 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Don't drop NOTICE messages in isolation tests. For its entire existence, isolationtester.c has forced client_min_messages to WARNING, but that seems like a very poor choice of test design. It should be up to individual test scripts to manage whether they emit notices and to ensure that the results are stable. (There were no NOTICE messages in the original set of isolation tests, so this was certainly dead code when committed, but perhaps it was needed at some earlier point.) It's possible that the original motivation was due to platform-dependent variations in the timing of stdout vs. stderr output. That should be moot since commits 73bcb76b7/6eda3e9c2, but just in case, adjust isotesterNoticeProcessor to print to stdout not stderr. (stderr seems like the wrong thing anyway: it should be for error printouts not expected test output.) Back-patch of commit ebd499282 into v12. I'll separately push this into older branches, but this is as much change as v12 needs. Discussion: https://postgr.es/m/14616.1564251339@sss.pgh.pa.us Discussion: https://postgr.es/m/E1i7IqC-0000Uc-5H@gemulon.postgresql.org Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b1016834d325dff5eb168e5f6f261462eb6f1d56 Modified Files -------------- .../expected/insert-conflict-specconflict.out | 38 ++++++++++++++++++++++ src/test/isolation/expected/plpgsql-toast.out | 15 ++++++--- src/test/isolation/isolationtester.c | 14 +------- src/test/isolation/specs/plpgsql-toast.spec | 10 +++--- 4 files changed, 54 insertions(+), 23 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-09-10 16:05 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-07-27 20:00 pgsql: Don't drop NOTICE messages in isolation tests. Tom Lane <tgl@sss.pgh.pa.us> 2019-09-10 16:05 pgsql: Don't drop NOTICE messages in isolation tests. 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