Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz8NC-0003H4-G3 for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 23:12:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gz8NB-00077y-AV for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 23:12:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz8NA-00077r-VF for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 23:12:21 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz8N8-0006Ep-9Y for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 23:12:20 +0000 Received: by mail-qt1-x843.google.com with SMTP id z25so21347085qti.13 for ; Wed, 27 Feb 2019 15:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=f7VYkgWZJ/EcUjeLY+pxKKjuJu4aFkNculDsM5nYsfo=; b=vrumSyEExyo/L919MhJqGTsORa8+ABVxNfEH+t9H9bZFdgnvE9Kl7vVmAe1kKGZXSI 1XGg1XwwJcSdq83vNiHYpP/i408kK2Ekyeiksfom6t7rR1lnvJJHtQTZnY8gdDYeB9t5 Go5Oa8QLsS2/V1GD1yjXEsIJszNsMmPwzGO/qKJg0222VtW37aE6HRSy6TedoxkF5L7y 6C5qbCL6RdOS8pihvWlR8aVETxRst2C5sYm7xTATlhy+Cl87U10DaXYhFHWHWi4Bn+S/ VKrPhCMARXeK1nsd+uDeMwfKdzfNyiYdI0wUDB0C2FoZAfouuc78iTwSdXtmuU2jaHDs H8Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=f7VYkgWZJ/EcUjeLY+pxKKjuJu4aFkNculDsM5nYsfo=; b=JjGArvIujrTuttWKiMyEWiPnjZi6Gl7I1g/+SzNoAxcmca4O8sPIy32IXatTkcv8tJ Xpcl2p+ja0375fdDgMpcwluXOAWf/j1rvRWB+PtcNtzuZbQksvM5GWNR3dcp6qA/vvjj cQQvHj2FVWa0GBagzk26++qD/PgYtPrLo8Gx04IOyzwTAeQGH3Sf32QqM/2QNszyf1iI EOwtEpJ/nsGD44H6yhs5wqmKiumPAh4aj72Ty+8tMjBhgR5mMCaojQqKmuVMVN70JG9n tHAA/RWYjia1DjGrh2R8zDVC66yqc+6tPWMy4NUZ0Ys/TdISbu8Bk6INBWAeYWvHuBhz milA== X-Gm-Message-State: APjAAAXK9rW+yHqss4Xc/RagUFo40Z3SdKZrtjS0KTZWm6ZGgH12s4Pe 6coMYIRzdy2rbaFG8inMxwy89g== X-Google-Smtp-Source: APXvYqyWiZB3t2lTtRCdm0AWXuhV7lH2soU+nOSEzDfq5P0O2Fz8Fiy2ZbQRne9g0mWOXDBXp/Spig== X-Received: by 2002:a0c:aec8:: with SMTP id n8mr4029705qvd.196.1551309136430; Wed, 27 Feb 2019 15:12:16 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([191.126.99.204]) by smtp.gmail.com with ESMTPSA id w8sm16602889qkw.80.2019.02.27.15.12.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Feb 2019 15:12:15 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 50DEA124759; Wed, 27 Feb 2019 16:31:14 -0300 (-03) Date: Wed, 27 Feb 2019 16:31:14 -0300 From: Alvaro Herrera To: Derek Hans Cc: pgsql-general@lists.postgresql.org Subject: Re: Update does not move row across foreign partitions in v11 Message-ID: <20190227193114.GA19279@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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