From: | Dave Cramer <davecramer(at)gmail(dot)com> |
---|---|
To: | Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Petr Jelinek <petr(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: patch to ensure logical decoding errors early |
Date: | 2018-08-01 15:07:24 |
Message-ID: | CADK3HHJJHrGo4TS0dtG42_Tip9p7i1FMy-2tYTB6A2hLhjt15g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 1 August 2018 at 10:13, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
wrote:
> Hi,
>
> On 31/07/18 20:58, Andres Freund wrote>
> >> diff --git a/src/backend/replication/logical/logical.c
> b/src/backend/replication/logical/logical.c
> >> index 3cd4eef..9f883b9 100644
> >> --- a/src/backend/replication/logical/logical.c
> >> +++ b/src/backend/replication/logical/logical.c
> >> @@ -143,8 +143,7 @@ StartupDecodingContext(List *output_plugin_options,
> >> * (re-)load output plugins, so we detect a bad (removed) output
> plugin
> >> * now.
> >> */
> >> - if (!fast_forward)
> >> - LoadOutputPlugin(&ctx->callbacks,
> NameStr(slot->data.plugin));
> >> + LoadOutputPlugin(&ctx->callbacks, NameStr(slot->data.plugin));
> >
> > So this actually was broken by 9c7d06d60680c7f00d931233873dee81fdb311c6
> > and worked before? Petr, Simon? Isn't the actual bug here that
> > CreateInitDecodingContext() passes true for fast_forward? Dave, could
> > you confirm this is the case? If so, this'll end up actually being an
> > open items entry...
> >
>
> Indeed.
>
See attached patch which fixes it, and adds a test for it.
Attachment | Content-Type | Size |
---|---|---|
0001-Ensure-pg_create_logical_replication_slot-fails-if-t.patch | application/octet-stream | 3.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Cynthia Shang | 2018-08-01 15:18:04 | Re: Allow COPY's 'text' format to output a header |
Previous Message | Robert Haas | 2018-08-01 15:07:04 | Re: Explain buffers wrong counter with parallel plans |