Re: Making background psql nicer to use in tap tests - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Making background psql nicer to use in tap tests
Date
Msg-id 882122.1675109206@sss.pgh.pa.us
Whole thread Raw
In response to Making background psql nicer to use in tap tests  (Andres Freund <andres@anarazel.de>)
Responses Re: Making background psql nicer to use in tap tests
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> It's annoyingly hard to wait for the result of a query in a generic way with
> background_psql(), and more generally for psql. background_psql() uses -XAtq,
> which means that we'll not get "status" output (like "BEGIN" or "(1 row)"),
> and that queries not returning anything are completely invisible.

Yeah, the empty-query-result problem was giving me fits recently.
+1 for wrapping this into something more convenient to use.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: recovery modules
Next
From: Andres Freund
Date:
Subject: Re: BUG: Postgres 14 + vacuum_defer_cleanup_age + FOR UPDATE + UPDATE