Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 574D5632D7B for ; Sat, 7 Feb 2009 15:05:09 -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 95994-08 for ; Sat, 7 Feb 2009 15:05:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128141.authsmtp.com (outmail128141.authsmtp.com [62.13.128.141]) by mail.postgresql.org (Postfix) with ESMTP id B8990632CE2 for ; Sat, 7 Feb 2009 15:05:00 -0400 (AST) Received: from mail-c189.authsmtp.com (mail-c189.authsmtp.com [62.13.128.71]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n17J4vGV007268; Sat, 7 Feb 2009 19:04:57 GMT Received: from Sidney-Stratton.local (adsl-63-195-55-98.dsl.snfc21.pacbell.net [63.195.55.98]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n17J4tK0085696; Sat, 7 Feb 2009 19:04:56 GMT Message-ID: <498DDB52.6070207@agliodbs.com> Date: Sat, 07 Feb 2009 11:04:50 -0800 From: Josh Berkus Organization: Aglio Database Solutions User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Bruce Momjian CC: pgsql-docs@postgresql.org Subject: Re: Clarification to catalog-pg-class References: <200902071705.n17H5XS17017@momjian.us> In-Reply-To: <200902071705.n17H5XS17017@momjian.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 35ac56fa-f54a-11dd-bc7b-001f29070be2 X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQL c1ACcR19PVdbHwkB CnYKUl5UVFd0Xy1z aBRQZABDZ09QVg11 Uk1LR01SWltpBmYF QmUeUhF3cQxANn91 bEYsXXUKD0F8Ixdg FEtQRHAHZDM0dTJM VxJFdwNVJgFDfhhF OAV9GhFYa3VsEgUT JDp7FDQ4JzRRKS9c XgAKKxoORg4AFyI1 QxcNWC0gWEYBTj4o RyAn 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/2 X-Sequence-Number: 5048 Bruce, >> Currently, catalog-pg-class is a bit confusing as to where FKs are >> tracked in pg_class. Please update the lines for relchecks and >> reltriggers to read: >> >> relchecks int2 Number of check constraints on the table (but not >> other types of constraints); see pg_constraint catalog > > Uh, why do we have to say "but" when we clearly say "check constraints"? > Do we need to say "CHECK" contraints? Because I've encountered two people on IRC (and a client) who were confused about this, and it confused me briefly when I fielded their questions. Saying "CHECK constraints" would also probably do it, or saying "check constraints (only)" BTW, why do we still have relukeys etc. around? If we haven't used them in 5 versions, shouldn't we purge them? > >> reltriggers int2 Number of triggers on the table, including >> constraint-triggers for foreign keys; see pg_trigger catalog > > pg_class doesn't have that column anymore, it has relhastriggers. Ah. Where are we tracking FKs at this point, then? --Josh