pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14719: Logical replication unexpected behaviour when target table has missing columns
4+ messages / 4 participants
[nested] [flat]

* BUG #14719: Logical replication unexpected behaviour when target table has missing columns
@ 2017-06-27 08:28  garton@gmail.com
  0 siblings, 2 replies; 4+ messages in thread

From: garton@gmail.com @ 2017-06-27 08:28 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14719
Logged by:          Martin Garton
Email address:      garton@gmail.com
PostgreSQL version: 10beta1
Operating system:   Linux xxxxxx 4.9.0-3-amd64 #1 SMP Debian 4.9.30-
Description:        

The documentation states:

"The target table can have additional columns not provided by the published
table. Those will be filled with their default values."

However, when I added a column on the source database, the target began to
error:

ERROR:  logical replication target relation "public.foo" is missing some
replicated columns

This seems to contradict the documentation.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14719: Logical replication unexpected behaviour when target table has missing columns
@ 2017-06-27 15:32  David G. Johnston <david.g.johnston@gmail.com>
  parent: garton@gmail.com
  1 sibling, 0 replies; 4+ messages in thread

From: David G. Johnston @ 2017-06-27 15:32 UTC (permalink / raw)
  To: garton@gmail.com; +Cc: pgsql-bugs

On Tue, Jun 27, 2017 at 1:28 AM, <garton@gmail.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14719
> Logged by:          Martin Garton
> Email address:      garton@gmail.com
> PostgreSQL version: 10beta1
> Operating system:   Linux xxxxxx 4.9.0-3-amd64 #1 SMP Debian 4.9.30-
> Description:
>
> The documentation states:
>
> "The target table can have additional columns not provided by the published
> table. Those will be filled with their default values."
>
> However, when I added a column on the source database, the target began to
> error:
>
> ERROR:  logical replication target relation "public.foo" is missing some
> replicated columns
>
> This seems to contradict the documentation.
>

​The target table can have extra columns - what you describe is a scenario
where it has fewer (i.e., you added a column to the source table).

David J.​

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14719: Logical replication unexpected behaviour when target table has missing columns
@ 2017-06-27 15:33  Tom Lane <tgl@sss.pgh.pa.us>
  parent: garton@gmail.com
  1 sibling, 1 reply; 4+ messages in thread

From: Tom Lane @ 2017-06-27 15:33 UTC (permalink / raw)
  To: garton@gmail.com; +Cc: pgsql-bugs

garton@gmail.com writes:
> The documentation states:

> "The target table can have additional columns not provided by the published
> table. Those will be filled with their default values."

> However, when I added a column on the source database, the target began to
> error:

> ERROR:  logical replication target relation "public.foo" is missing some
> replicated columns

> This seems to contradict the documentation.

Um, by my reading, what that paragraph is describing is the opposite case.
It says you can add extra columns to the target table, not the source one.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14719: Logical replication unexpected behaviour when target table has missing columns
@ 2017-06-27 19:52  Martin Garton <garton@gmail.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Martin Garton @ 2017-06-27 19:52 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

Thanks, you are right of course.  Sorry for the nouse.  (I'll now go back
to trying to understand how to operate a logical replication cluster
properly.)

On 27 June 2017 at 16:33, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> garton@gmail.com writes:
> > The documentation states:
>
> > "The target table can have additional columns not provided by the
> published
> > table. Those will be filled with their default values."
>
> > However, when I added a column on the source database, the target began
> to
> > error:
>
> > ERROR:  logical replication target relation "public.foo" is missing some
> > replicated columns
>
> > This seems to contradict the documentation.
>
> Um, by my reading, what that paragraph is describing is the opposite case.
> It says you can add extra columns to the target table, not the source one.
>
>                         regards, tom lane
>



-- 
Martin Garton.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-06-27 19:52 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-06-27 08:28 BUG #14719: Logical replication unexpected behaviour when target table has missing columns garton@gmail.com
2017-06-27 15:32 ` David G. Johnston <david.g.johnston@gmail.com>
2017-06-27 15:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-06-27 19:52   ` Martin Garton <garton@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox