Re: speed up a logical replica setup
От | Euler Taveira |
---|---|
Тема | Re: speed up a logical replica setup |
Дата | |
Msg-id | 2edde173-5ff9-45fd-b881-cd04eb13049f@app.fastmail.com обсуждение исходный текст |
Ответ на | RE: speed up a logical replica setup ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>) |
Ответы |
RE: speed up a logical replica setup
|
Список | pgsql-hackers |
On Thu, Feb 8, 2024, at 12:04 AM, Hayato Kuroda (Fujitsu) wrote:
>Remember the target server was a standby (read only access). I don't expect anapplication trying to modify it; unless it is a buggy application.>What if the client modifies the data just after the promotion?Naively considered, all the changes can be accepted, but are there any issues?
If someone modifies data after promotion, fine; she has to deal with conflicts,
if any. IMO it is solved adding one or two sentences in the documentation.
>RegardingGUCs, almost all of them is PGC_POSTMASTER (so it cannot be modified unless theserver is restarted). The ones that are not PGC_POSTMASTER, does not affect thepg_createsubscriber execution [1].>IIUC, primary_conninfo and primary_slot_name is PGC_SIGHUP.
Ditto.
>I'm just pointing out that this case is a different from pg_upgrade (from whichthis idea was taken). I'm not saying that's a bad idea. I'm just arguing thatyou might be preventing some access read only access (monitoring) when it isperfectly fine to connect to the database and execute queries. As I saidbefore, the current UI allows anyone to setup the standby to accept only localconnections. Of course, it is an extra step but it is possible. However, onceyou apply v16-0007, there is no option but use only local connection during thetransformation. Is it an acceptable limitation?>My remained concern is written above. If they do not problematic we may not haveto restrict them for now. At that time, changes1) overwriting a port number,2) setting listen_addresses = ''
It can be implemented later if people are excited by it.
are not needed, right? IIUC inconsistency of -P may be still problematic.
I still think we shouldn't have only the transformed primary_conninfo as
option.
>pglogical_create_subscriber does nothing [2][3].>Oh, thanks.Just to confirm - pglogical set shared_preload_libraries to '', should we follow or not?
The in-core logical replication does not require any library to be loaded.
В списке pgsql-hackers по дате отправления: