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 202403181409.y2imrqpbayjg@alvherre.pgsql
Whole thread Raw
In response to Re: speed up a logical replica setup  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On 2024-Mar-18, Peter Eisentraut wrote:

> * src/bin/pg_basebackup/pg_createsubscriber.c
> 
> I think the connection string handling is not robust against funny
> characters, like spaces, in database names etc.

Maybe it would be easier to deal with this by passing around a struct
with keyword/value pairs that can be given to PQconnectdbParams (and
keeping dbname as a param that's passed separately, so that it can be
added when one is needed), instead of messing with the string conninfos;
then you don't have to worry about quoting.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"If you have nothing to say, maybe you need just the right tool to help you
not say it."                   (New York Times, about Microsoft PowerPoint)



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Add LSN <-> time conversion functionality
Next
From: Robert Haas
Date:
Subject: documentation structure