pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Derek Hans <derek.hans@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Update does not move row across foreign partitions in v11
Date: Wed, 27 Feb 2019 16:31:14 -0300
Message-ID: <20190227193114.GA19279@alvherre.pgsql> (raw)
In-Reply-To: <CAGrP7a3Xc1Qy_B2WJcgAD8uQTS_NDcJn06O5mtS_Ne1nYhBsyw@mail.gmail.com>

On 2019-Feb-22, Derek Hans wrote:

> I've set up 2 instances of PostgreSQL 11. On instance A, I created a table
> with 2 local partitions and 2 partitions on instance B using foreign data
> wrappers, following https://pgdash.io/blog/postgres-11-sharding.html.
> Inserting rows into this table works as expected, with rows ending up in
> the appropriate partition. However, updating those rows only moves them
> across partitions in some of the situations:
> 
>    - From local partition to local partition
>    - From local partition to foreign partition
> 
> Rows are not moved
> 
>    - From foreign partition to local partition
>    - From foreign partition to foreign partition
> 
> Is this the expected behavior? Am I missing something or configured
> something incorrectly?

Sounds like a bug to me.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (33+ messages)  latest in thread

Message-ID: <20190227193114.GA19279@alvherre.pgsql>
Permalink:  ../20190227193114.GA19279@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190227193114.GA19279@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@2ndquadrant.com, derek.hans@gmail.com
  Subject: Re: Update does not move row across foreign partitions in v11
  In-Reply-To: <20190227193114.GA19279@alvherre.pgsql>
  References: <CAGrP7a3Xc1Qy_B2WJcgAD8uQTS_NDcJn06O5mtS_Ne1nYhBsyw@mail.gmail.com> <20190227193114.GA19279@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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