From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Paul Martinez <paulmtz(at)google(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCH] Note effect of max_replication_slots on subscriber side in documentation. |
Date: | 2021-02-26 13:22:29 |
Message-ID: | CAA4eK1+j21-dX-zngXQkkF7-ZXyrR+tzRFcmu5F+Tq_60DO-VA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Feb 26, 2021 at 1:53 AM Paul Martinez <paulmtz(at)google(dot)com> wrote:
>
> On Thu, Feb 25, 2021 at 5:31 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> >
> > For docs only patch, I have few suggestions:
> > 1. On page [1], it is not very clear that we are suggesting to set
> > max_replication_slots for origins whereas your new doc patch has
> > clarified it, can we update the other page as well.
>
> Sorry, what other page are you referring to?
>
https://www.postgresql.org/docs/devel/logical-replication-config.html
>
> > 2.
> > Setting it a lower value than the current
> > + number of tracked replication origins (reflected in
> > + <link
> > linkend="view-pg-replication-origin-status">pg_replication_origin_status</link>,
> > + not <link
> > linkend="catalog-pg-replication-origin">pg_replication_origin</link>)
> > + will prevent the server from starting.
> > + </para>
> >
> > Why can't we just mention pg_replication_origin above?
> >
>
> So this is slightly confusing:
>
> pg_replication_origin just contains mappings from origin names to oids.
> It is regular catalog table and has no limit on its size. Users can also
> manually insert rows into this table.
>
> https://www.postgresql.org/docs/13/catalog-pg-replication-origin.html
>
> The view showing the in-memory information is actually
> pg_replication_origin_status. The number of entries here is what is
> actually constrained by the GUC parameter.
>
Okay, that makes sense. However, I have sent a patch today (see [1])
where I have slightly updated the subscriber-side configuration
paragraph. From PG-14 onwards, table synchronization workers also use
origins on subscribers, so you might want to adjust.
>
>
> This also brings up a point regarding the naming of the added GUC.
> max_replication_origins is cleanest, but has this confusion regarding
> pg_replication_origin vs. pg_replication_origin_status.
> max_replication_origin_statuses is weird (and long).
> max_tracked_replication_origins is a possibility?
>
or maybe max_replication_origin_states. I guess we can leave adding
GUC to some other day as that might require a bit broader acceptance
and we are already near to the start of last CF. I think we can still
consider it if we few more people share the same opinion as yours.
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2021-02-26 13:56:02 | Re: repeated decoding of prepared transactions |
Previous Message | Amul Sul | 2021-02-26 11:40:34 | Re: [Patch] ALTER SYSTEM READ ONLY |