X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C01C79DC832 for ; Tue, 3 Jan 2006 22:12:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92049-07 for ; Tue, 3 Jan 2006 22:12:31 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (unknown [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 0F5239DC839 for ; Tue, 3 Jan 2006 22:12:24 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 7D7B33983E; Tue, 3 Jan 2006 20:12:29 -0600 (CST) Date: Tue, 3 Jan 2006 20:12:29 -0600 From: "Jim C. Nasby" To: Bruce Momjian Cc: pgsql-docs@postgresql.org Subject: Re: CONSTRAINT syntax in ALTER TABLE Message-ID: <20060104021229.GI82560@pervasive.com> References: <20060102214613.GM39326@pervasive.com> <200601030204.k0324p324245@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601030204.k0324p324245@candle.pha.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.07 required=5 tests=[AWL=0.070] X-Spam-Score: 0.07 X-Spam-Level: X-Archive-Number: 200601/6 X-Sequence-Number: 3396 On Mon, Jan 02, 2006 at 09:04:50PM -0500, Bruce Momjian wrote: > Jim C. Nasby wrote: > > Maybe it's just me, but I find it annoying that the ALTER TABLE docs > > say to look at the CREATE TABLE docs for info on CONSTRAINT syntax. ISTM > > it would be much better to: > > > > Include the docs in both places, or > > Break constraint syntax/info into it's own page > > > > A last-resort would be to still refer to CREATE TABLE, but at least make > > it link to the actual constraint section, instead of just linking to the > > top of the page as it does now. > > I like that last idea. I don't think duplicate documentation or a > separate section are a win. By #2 I assume you mean my 'last resort'. One thing I dislike about that is (I assume) it would do nothing to help \h ALTER TABLE in psql. Maybe a good compromise would be to include the table_constraint section of the CREATE TABLE syntax in the ALTER TABLE syntax. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461