From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Rushabh Lathia <rushabh.lathia@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8275: Updateable View based on inheritance (partition) throws Error on INSERT Statement
Date: Wed, 03 Jul 2013 12:29:54 -0400
Message-ID: <11683.1372868994@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEZATCW4EUi-BqjzYyow0nt84jhOwSDxzbhtbFoRrvUi59NCnQ@mail.gmail.com>
References: <E1UtsgX-0005d6-12@wrigleys.postgresql.org>
<CAGPqQf36buGap5CVSX7Kese3UADwkzsuvTfgwK5-TWed3_Ytxg@mail.gmail.com>
<CAEZATCXakV4zUuUB1EW2Rgs56dQJ_tgdr1ouzBpgYbHnN1UV2Q@mail.gmail.com>
<CAEZATCW4EUi-BqjzYyow0nt84jhOwSDxzbhtbFoRrvUi59NCnQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> On 2 July 2013 09:30, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>> I think the rewritten query should only use inheritance if inheritance
>> was requested in the original query, *and* if inheritance was enabled
>> in the view's query, per attached patch against HEAD.
> On second thoughts, I think this should only apply to INSERT.
> UPDATE and DELETE should continue work the same as SELECT, respecting
> the inheritance flag from the view query regardless of the inheritance
> flag in the outer query.
[ thinks for a bit... ] Yeah, I agree.
> Attached is an updated patch for HEAD, with regression tests. This
> should also be applied to the 9.3beta branch.
Applied with minor adjustments --- mainly, I took out the inFromCl
twiddling, which AFAICS is neither necessary (nothing downstream of this
looks at inFromCl) nor clearly correct.
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
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: tgl@sss.pgh.pa.us, dean.a.rasheed@gmail.com, rushabh.lathia@gmail.com
Subject: Re: BUG #8275: Updateable View based on inheritance (partition) throws Error on INSERT Statement
In-Reply-To: <11683.1372868994@sss.pgh.pa.us>
References: <E1UtsgX-0005d6-12@wrigleys.postgresql.org> <CAGPqQf36buGap5CVSX7Kese3UADwkzsuvTfgwK5-TWed3_Ytxg@mail.gmail.com> <CAEZATCXakV4zUuUB1EW2Rgs56dQJ_tgdr1ouzBpgYbHnN1UV2Q@mail.gmail.com> <CAEZATCW4EUi-BqjzYyow0nt84jhOwSDxzbhtbFoRrvUi59NCnQ@mail.gmail.com> <11683.1372868994@sss.pgh.pa.us>
* 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