pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Bernd Helmle <mailings@oopsware.de>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: WIP: Automatic view update rules
Date: Mon, 19 Jan 2009 09:18:09 +0100
Message-ID: <D0E54F0A0C463C23FE9383CF@teje> (raw )
In-Reply-To: <49711FCB.7060404@gmx.net >
References: <2849137C693B65CC8E86411C@imhotep.credativ.de >
<94CF655A8D0DC7D5B4B81D8B@imhotep.credativ.de >
<603c8f070811112006q906b3a6o59a66228b7fc997@mail.gmail.com >
<7F84532C73CB3279DE8436E0@imhotep.credativ.de >
<603c8f070811131344n5c087057p11f94780dae80885@mail.gmail.com >
<603c8f070811252043r75db3e83v2eba1611452ee62e@mail.gmail.com >
<EB911BE7EC3A7A599A379DEF@teje >
<D0935A35C6F4B274E0CD4DDB@teje >
<3073cc9b0812250943x23547116ud956d8ab111e55bf@mail.gmail.com >
<61043.91.48.33.48.1230474598.squirrel@tooney.at.xencon.de >
<E8182FB470BA1207E6A8838D@teje >
<3B3B2ACA2DB4AF9AF585FBAF@teje >
<0163DD949AF0457BB1DBBD80@teje >
<496B3C2E.6040908@gmx.net >
<566CB90F49AFDB29D12D3D21@teje >
<49711FCB.7060404@gmx.net >
--On Samstag, Januar 17, 2009 02:01:15 +0200 Peter Eisentraut
<peter_e@gmx.net> wrote:
> * It is not clear how automatic rules and manual DO ALSO rules should
> interact. A manual DO ALSO rule will currently clear out an automatic
> INSTEAD rule, which I find to be illogical.
My intentional feeling was that it would be a bad idea to leave any
implicit rule when someone is going to create his own rule set on a view,
at least to avoid any confusion or side effects. Consider someone having
his own rules upgrading from an older version. He must have at least his
own DO INSTEAD Rule, it doesn't make any sense to have his own DO ALSO Rule
without an INSTEAD one. Thus, doing it this way will leave the view as
expected from the original setup.
*thinking more*...if we teach explicit DO ALSO rules *not* to clean out
implicit ones, we will have the following workflows:
a) View is updatable, has its own automatic DO INSTEAD rule: if someone is
restoring his old update rules, he will have at least his own DO INSTEAD
rule. This will drop any corresponding automatically created rule, adding
his own DO INSTEAD rule and any DO ALSO rule.
b) View is updatable, has its own automatic DO INSTEAD rule: The user is
able to create any additional DO ALSO rule.
I don't see any problems here, as long as the implicit DO INSTEAD rule gets
replaced.
Opinions?
--
Thanks
Bernd
view thread (27+ messages) latest in thread
Message-ID: <D0E54F0A0C463C23FE9383CF@teje>
Permalink: ../D0E54F0A0C463C23FE9383CF@teje/
Also on: postgresql.org/message-id/D0E54F0A0C463C23FE9383CF@teje
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: mailings@oopsware.de, peter_e@gmx.net
Subject: Re: WIP: Automatic view update rules
In-Reply-To: <D0E54F0A0C463C23FE9383CF@teje>
* 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