pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
4+ messages / 2 participants
[nested] [flat]
* pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
@ 2019-08-26 21:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2019-08-26 21:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
If a test case tried to set an invalid value of synchronous_standby_names,
the test script didn't detect that, which seems like a bad idea.
Noticed while testing a proposed patch that broke some of these
test cases.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fb57f40eec503d637bf01c298f5cb2472f0d4fdb
Modified Files
--------------
src/test/recovery/t/007_sync_rep.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
@ 2019-08-28 01:24 Michael Paquier <michael@paquier.xyz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Paquier @ 2019-08-28 01:24 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
On Mon, Aug 26, 2019 at 09:03:08PM +0000, Tom Lane wrote:
> Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
>
> If a test case tried to set an invalid value of synchronous_standby_names,
> the test script didn't detect that, which seems like a bad idea.
> Noticed while testing a proposed patch that broke some of these
> test cases.
Just for the note. I think that this needs a closer lookup and I am
afraid that there are more issues like this one. For example, in
012_subtransactions.pl, pg_reload_conf() is called with
PostgresNode::psql without checking for an error which is a bad idea
after switching to synchonous replication. Most of the transactions
done in this scrupt should also complain immediately on an error.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
@ 2019-08-28 03:38 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2019-08-28 03:38 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Aug 26, 2019 at 09:03:08PM +0000, Tom Lane wrote:
>> Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
> Just for the note. I think that this needs a closer lookup and I am
> afraid that there are more issues like this one.
Yeah, it might be a good idea to make a sweep to see what other tests
should be using safe_psql.
Or, more radically, we could think about redefining PostgresNode::psql
to complain about errors, and you have to use something else if you
want it not to?
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
@ 2019-08-28 06:39 Michael Paquier <michael@paquier.xyz>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Michael Paquier @ 2019-08-28 06:39 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
On Tue, Aug 27, 2019 at 11:38:28PM -0400, Tom Lane wrote:
> Yeah, it might be a good idea to make a sweep to see what other tests
> should be using safe_psql.
I found more of these while browsing all the tests, so I am just going
to start a new thread with a patch.
> Or, more radically, we could think about redefining PostgresNode::psql
> to complain about errors, and you have to use something else if you
> want it not to?
Not sure about redesigning that as it has been around for a couple of
years now, and that would mean perhaps a third wrapper on top of
PostgresNode::psql.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-08-28 06:39 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 21:03 pgsql: Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET. Tom Lane <tgl@sss.pgh.pa.us>
2019-08-28 01:24 ` Michael Paquier <michael@paquier.xyz>
2019-08-28 03:38 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-08-28 06:39 ` Michael Paquier <michael@paquier.xyz>
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