Re: BUG #18960: Mistake in test test_simple_pipeline (libpq_pipeline.c)

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: d(dot)kovalenko(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18960: Mistake in test test_simple_pipeline (libpq_pipeline.c)
Date: 2025-09-03 12:28:30
Message-ID: 202509031228.wuh3frddxcvl@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2025-Jun-21, Tom Lane wrote:

> 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.

Yeah, the code looks much better this way. I thought it was a bit odd
that a function called confirm_result_status() would actually consume
said status. Would it be better as
consume_result_status(PGconn *conn, ExecStatusType expected)
?

I think the patch is a clear improvement regardless.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"World domination is proceeding according to plan" (Andrew Morton)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dilip Kumar 2025-09-03 12:45:13 Re: BUG #19041: Logical replication locks wal processing
Previous Message Sergey Belyashov 2025-09-03 12:10:32 Re: BUG #19041: Logical replication locks wal processing