Re: speed up a logical replica setup - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: speed up a logical replica setup
Date
Msg-id 202402201053.6jjvdrm7kahf@alvherre.pgsql
Whole thread Raw
In response to RE: speed up a logical replica setup  ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>)
Responses RE: speed up a logical replica setup
List pgsql-hackers
On 2024-Feb-16, Hayato Kuroda (Fujitsu) wrote:

> 15.
> 
> You said in case of failure, cleanups is not needed if the process exits soon [1].
> But some functions call PQfinish() then exit(1) or pg_fatal(). Should we follow?

Hmm, but doesn't this mean that the server will log an ugly message that
"client closed connection unexpectedly"?  I think it's nicer to close
the connection before terminating the process (especially since the
code for that is already written).

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"We’ve narrowed the problem down to the customer’s pants being in a situation
 of vigorous combustion" (Robert Haas, Postgres expert extraordinaire)



pgsql-hackers by date:

Previous
From: Matthias van de Meent
Date:
Subject: Re: Add bump memory context type and use it for tuplesorts
Next
From: Andrei Lepikhov
Date:
Subject: Re: [POC] Allow flattening of subquery with a link to upper query