Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8CA57B5DBC4 for ; Sat, 16 Jul 2011 23:53:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 03986-06 for ; Sun, 17 Jul 2011 02:53:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mbx.knossos.net.nz (mbx.knossos.net.nz [202.160.48.10]) by mail.postgresql.org (Postfix) with ESMTP id 138C6B5DBBE for ; Sat, 16 Jul 2011 23:53:07 -0300 (ADT) Received: from [10.1.1.3] (60-234-150-59.bitstream.orcon.net.nz [60.234.150.59]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id p6H2r1fY011924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 17 Jul 2011 14:53:01 +1200 Message-ID: <4E224E8D.7070803@archidevsys.co.nz> Date: Sun, 17 Jul 2011 14:53:01 +1200 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.11 MIME-Version: 1.0 To: Tom Lane CC: Alvaro Herrera , Pg Bugs Subject: Re: Spurious errors relating to escaped single quotes 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> In-Reply-To: <3426.1310750498@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/129 X-Sequence-Number: 30741 On 16/07/11 05:21, Tom Lane wrote: > Gavin Flower 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