Re: BUG #18960: Mistake in test test_simple_pipeline (libpq_pipeline.c)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: d.kovalenko@postgrespro.ru
Cc: Álvaro Herrera <alvherre@kurilemu.de>, pgsql-bugs@lists.postgresql.org
Date: 2025-06-21T20:01:03Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Make libpq_pipeline.c shorter and more uniform via helper functions.
- e351e5c4fea4 19 (unreleased) landed
-
pg_dump: Allow pg_dump to dump the statistics for foreign tables.
- c2e2589ab969 18.0 cited
Attachments
- v1-clean-up-libpq-pipeline-tests.patch (text/x-diff) patch v1
I wrote: > I agree that's wrong ... but looking around, there's a huge amount > of random inconsistency in this test script --- this same simple > task of checking for an expected NULL result is coded several > different ways with varying amounts of detail provided, and > some other places share this same outright bug. > I think it'd be better to make a helper function > "CheckNoMoreResults(conn)", or something along that line, > to shorten and standardize these places. Here's a shot at improving matters. I also made an effort at cleaning up memory leaks in libpq_pipeline.c, although that's surely neatnik-ism not anything meaningful. regards, tom lane