pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Spurious errors relating to escaped single quotes
Date: Sun, 17 Jul 2011 14:53:01 +1200
Message-ID: <4E224E8D.7070803@archidevsys.co.nz> (raw)
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>

On 16/07/11 05:21, Tom Lane wrote:
> 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

How about being able to mark individual columns, and optionally the
table itself, as ABSTRACT?

Though, I agree that a proper partitioning mechanism would be better.

Cheers,
Gavin




view thread (8+ messages)

Message-ID: <4E224E8D.7070803@archidevsys.co.nz>
Permalink:  ../4E224E8D.7070803@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4E224E8D.7070803@archidevsys.co.nz

 · 

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 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: GavinFlower@archidevsys.co.nz, tgl@sss.pgh.pa.us, alvherre@commandprompt.com
  Subject: Re: Spurious errors relating to escaped single quotes
  In-Reply-To: <4E224E8D.7070803@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> <3426.1310750498@sss.pgh.pa.us> <4E224E8D.7070803@archidevsys.co.nz>

* 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