pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Yuli Khodorkovskiy <yuli.khodorkovskiy@crunchydata.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15804: Assertion failure when using logging_collector with EXEC_BACKEND
Date: Sun, 19 May 2019 14:19:40 -0400
Message-ID: <2702.1558289980@sss.pgh.pa.us> (raw)
In-Reply-To: <16df9d01-8b03-2664-a18c-16c40186f5ab@2ndQuadrant.com>
References: <20190516021903.GB1415@paquier.xyz>
	<28927.1557977558@sss.pgh.pa.us>
	<20190516035617.GC1415@paquier.xyz>
	<20190516043618.GD1415@paquier.xyz>
	<31437.1557982294@sss.pgh.pa.us>
	<20190516060628.GE1415@paquier.xyz>
	<20190517042536.GM20887@paquier.xyz>
	<20190517202443.gw4zdfkpwgsjdel6@alap3.anarazel.de>
	<20190518093522.GA19212@paquier.xyz>
	<28565.1558196308@sss.pgh.pa.us>
	<20190519004344.GA3653@paquier.xyz>
	<22995.1558278322@sss.pgh.pa.us>
	<27719.1558282181@sss.pgh.pa.us>
	<16df9d01-8b03-2664-a18c-16c40186f5ab@2ndQuadrant.com>

Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> On 5/19/19 12:09 PM, Tom Lane wrote:
>> Given the current unpleasantness, I think it's quite important that
>> we fix 004_logrotate.pl so that it (a) poses an end-to-end test
>> and (b) works on Windows.  I think (a) could be managed by having
>> the test execute guaranteed-to-fail SQL commands ("select 1/0" or
>> the like) and making it look into the log file to verify that the
>> expected error messages appear there.  (b) is a little harder in
>> view of Andrew's point that we can't just summarily rename or unlink
>> the log file.  But I don't much like using a fixed log file name
>> in the test anyway.  I propose that we let it use the default logfile
>> pattern (postgresql-%Y-%m-%d_%H%M%S.log), and that we just sleep for a
>> couple of seconds before requesting rotation, and that we verify that
>> the file name actually changed.  We can avoid difficult issues of
>> guessing what file name got used by having the test script look into
>> "current_logfiles" to get the name --- which is another feature that
>> there's exactly zero test coverage of right now, so that seems like
>> a win all around.

> Worth a try.

Done.  I went ahead and pushed it, but if the buildfarm shows any
sign of unhappiness I'll just revert it.

			regards, tom lane





view thread (40+ messages)  latest in thread

Message-ID: <2702.1558289980@sss.pgh.pa.us>
Permalink:  ../2702.1558289980@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2702.1558289980@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew.dunstan@2ndquadrant.com, michael@paquier.xyz, andres@anarazel.de, peter.eisentraut@2ndquadrant.com, yuli.khodorkovskiy@crunchydata.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #15804: Assertion failure when using logging_collector with EXEC_BACKEND
  In-Reply-To: <2702.1558289980@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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