pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix bogus extra arguments to query_safe in test
Date: Wed, 10 Dec 2025 17:58:51 +0000
Message-ID: <E1vTOSg-0000w7-1W@gemulon.postgresql.org> (raw)

Fix bogus extra arguments to query_safe in test

The test seemed to incorrectly think that query_safe() takes an
argument that describes what the query does, similar to e.g.
command_ok(). Until commit bd8d9c9bdf the extra arguments were
harmless and were just ignored, but when commit bd8d9c9bdf introduced
a new optional argument to query_safe(), the extra arguments started
clashing with that, causing the test to fail.

Backpatch to v17, that's the oldest branch where the test exists. The
extra arguments didn't cause any trouble on the older branches, but
they were clearly bogus anyway.

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/807b2f261d643944120d29bfab70937ebbd4aad6

Modified Files
--------------
src/test/modules/xid_wraparound/t/004_notify_freeze.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



view thread (3+ messages)

Message-ID: <E1vTOSg-0000w7-1W@gemulon.postgresql.org>
Permalink:  ../E1vTOSg-0000w7-1W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vTOSg-0000w7-1W@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix bogus extra arguments to query_safe in test
  In-Reply-To: <E1vTOSg-0000w7-1W@gemulon.postgresql.org>

* 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