From: Terje Elde <terje@elde.net>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Single row INSERT on updatable VIEW on top of partitioned table is run against each inheriting table, giving multiple rows from single insert.
Date: Wed, 24 Jul 2013 15:11:31 +0200
Message-ID: <1297A7EB-DA4B-44A0-A768-84A094EFF230@elde.net> (raw)
In-Reply-To: <F2788A90-359C-451F-A5B2-263709950862@elde.net>
References: <F2788A90-359C-451F-A5B2-263709950862@elde.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Jul 24, 2013, at 2:37 PM, Terje Elde <terje@elde.net> wrote:
> Short summary:
> If I run a single INSERT against an updateable VIEW on top of a partitioned table, it's run against all the tables/partitions. I'd expect that with UPDATE and DELETE, but not with INSERT. Result is multiple rows for a single INSERT, one for each table.
Sorry, while I did scan the last month and the open issues-list before sending, I missed that this had already been identified, patch submitted, and applied:
http://www.postgresql.org/message-id/CAEZATCW4EUi-BqjzYyow0nt84jhOwSDxzbhtbFoRrvUi59NCnQ@mail.gmail....http://www.postgresql.org/message-id/11683.1372868994@sss.pgh.pa.us
Everything behaves as expected with the patch.
Terje
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-bugs@postgresql.org
Cc: terje@elde.net
Subject: Re: Single row INSERT on updatable VIEW on top of partitioned table is run against each inheriting table, giving multiple rows from single insert.
In-Reply-To: <1297A7EB-DA4B-44A0-A768-84A094EFF230@elde.net>
References: <F2788A90-359C-451F-A5B2-263709950862@elde.net> <1297A7EB-DA4B-44A0-A768-84A094EFF230@elde.net>
* 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