Re: pgsql: Add function to pump IPC process until string match - Mailing list pgsql-committers

From Daniel Gustafsson
Subject Re: pgsql: Add function to pump IPC process until string match
Date
Msg-id 72D87565-A0A6-42DC-BF0D-3C1E4AFB8237@yesql.se
Whole thread Raw
In response to Re: pgsql: Add function to pump IPC process until string match  (Andres Freund <andres@anarazel.de>)
Responses Re: pgsql: Add function to pump IPC process until string match
List pgsql-committers
> On 30 Mar 2022, at 18:09, Andres Freund <andres@anarazel.de> wrote:

>> Would adding back something like the (right now untested) below be what you're
>> after?  Looking at the perldoc I didn't see any other debugging aids we can
>> emit other than the stream and type of error.
>
> I found showing the regex from before useful. Often there's many
> pump_until()'s, and the regex makes it easier to figure out what errored
> out. And it shows quoting problem. Since it only happens when there was a
> failure, it's not like it'll bloat the log unduly.

I'll add diag output on failures along the lines of the diff from earlier today
but with the regex as well (which Alvarao also requested), but tomorrow morning
once coffee has been consumed.

--
Daniel Gustafsson        https://vmware.com/




pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: SQL JSON functions
Next
From: Tomas Vondra
Date:
Subject: pgsql: Optimize order of GROUP BY keys