From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gavin Flower <GavinFlower@archidevsys.co.nz>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Spurious errors relating to escaped single quotes
Date: Fri, 15 Jul 2011 13:21:38 -0400
Message-ID: <3426.1310750498@sss.pgh.pa.us> (raw)
In-Reply-To: <4E1FFA47.20501@archidevsys.co.nz>
References: <4E1ED6BC.9020709@archidevsys.co.nz>
<1310661849-sup-6899@alvh.no-ip.org>
<7689.1310670857@sss.pgh.pa.us>
<4E1F4AED.8060800@archidevsys.co.nz>
<4E1F7AED.2030201@archidevsys.co.nz>
<4E1FFA47.20501@archidevsys.co.nz>
Gavin Flower <GavinFlower@archidevsys.co.nz> writes:
> On 15/07/11 11:25, Gavin Flower wrote:
>> I think it should be possible to put a constraint on the master table
>> to prevent rows being inserted.
> Of course, minutes after I sent the above - I realized these constraints
> are inherited, so the above is nonsense! :-(
Yeah. I think there's been some discussion of inventing a non-inherited
variety of check constraint, so that you could put something like
"CHECK (false) NO INHERIT" on the parent table. There's not really
consensus for this though.
IMO we'd be better advised to spend our time on building an explicit
partitioning mechanism to handle the common cases more simply and
efficiently, instead of continuing to add frammishes to the inheritance
mechanism.
regards, tom lane
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, GavinFlower@archidevsys.co.nz, alvherre@commandprompt.com
Subject: Re: Spurious errors relating to escaped single quotes
In-Reply-To: <3426.1310750498@sss.pgh.pa.us>
References: <4E1ED6BC.9020709@archidevsys.co.nz> <1310661849-sup-6899@alvh.no-ip.org> <7689.1310670857@sss.pgh.pa.us> <4E1F4AED.8060800@archidevsys.co.nz> <4E1F7AED.2030201@archidevsys.co.nz> <4E1FFA47.20501@archidevsys.co.nz> <3426.1310750498@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