Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id BAC256323B6 for ; Fri, 13 Feb 2009 14:22:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71100-06 for ; Fri, 13 Feb 2009 14:22:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137140.authsmtp.com (outmail137140.authsmtp.com [62.13.137.140]) by mail.postgresql.org (Postfix) with ESMTP id A158E632308 for ; Fri, 13 Feb 2009 14:22:47 -0400 (AST) Received: from mail-c189.authsmtp.com (mail-c189.authsmtp.com [62.13.128.71]) by punt7.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n1DIMhGP001179; Fri, 13 Feb 2009 18:22:43 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n1DIMfXs094446; Fri, 13 Feb 2009 18:22:42 GMT Message-ID: <4995BA71.3030800@agliodbs.com> Date: Fri, 13 Feb 2009 10:22:41 -0800 From: Josh Berkus Organization: Aglio Database Solutions User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Peter Eisentraut CC: Bruce Momjian , pgsql-docs@postgresql.org Subject: Re: Clarification to catalog-pg-class References: <200902120317.n1C3HCO16080@momjian.us> <499539C6.9030700@gmx.net> In-Reply-To: <499539C6.9030700@gmx.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 4dc76d57-f9fb-11dd-bc7b-001f29070be2 X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQK c1ADdR19PVdbHwkB CnYKU15WUld1Wy1z bxRZbBtfZk9QXgRr T0pMQFdNFEs2AGh4 e0h2ERl7cwFCfjBx Z0BrEHQPD0N8IUN6 XxhdQz8bZGY0PH1N A0cKagNUcVVIdx9C agIqVj1vNG8XDQ4f NDQGdxs1NC9eJiVe Sx0MKlRaXUFDFTcg ThQFEnA3EggOQywo NHQn X-Authentic-SMTP: 61633136333939.kestrel.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/11 X-Sequence-Number: 5057 Peter, > I suppose a more constructive point would be, where are the other > constraint types kept track of? AFAICT, we're not tracking them in pg_class at all anymore, except that FKs will set relhastrigger=true in the absensce of any other triggers. The confusion on this particular line is caused by the "see pg_constraint catalog", which covers *all* constraints, whereas relconstrains only counts the CHECK constraints and not other types. That's why I think a small emphasis on CHECK would prevent people from being confused again. Of course, at this point, we've spent more time discussing the issue than people have been confused by it, probably. --Josh