Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3047F8D7AA for ; Mon, 14 Nov 2011 12:12:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 24307-08 for ; Mon, 14 Nov 2011 16:12:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 21FC88D7AB for ; Mon, 14 Nov 2011 12:12:30 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAEGCRnV027232; Mon, 14 Nov 2011 11:12:27 -0500 (EST) To: Thom Brown cc: pgsql-docs Subject: Re: SQL standard for TRUNCATE In-reply-to: References: Comments: In-reply-to Thom Brown message dated "Mon, 14 Nov 2011 15:24:22 +0000" Date: Mon, 14 Nov 2011 11:12:26 -0500 Message-ID: <27231.1321287146@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/14 X-Sequence-Number: 7089 Thom Brown writes: > According to > http://www.postgresql.org/docs/9.1/static/unsupported-features-sql-standard.html, > PostgreSQL doesn't support identity column restart for TRUNCATE. This > might strictly be true because PostgreSQL doesn't implement identity > columns as such, but it does support RESTART IDENTITY and CONTINUE > IDENTITY, which will apply to sequences, and those are equivalent. According to the reference page for TRUNCATE, the behaviors of those clauses are not exactly compatible with the standard, which is why we don't claim conformance. > If it's > going to say F202 is unsupported, shouldn't there at least be a note > acknowledging this feature is supported for sequences, but otherwise it > doesn't apply? Some attempt to implement this has been made. The features table doesn't really have room to put more than a "yes" or "no" entry, and I don't think a pile of footnotes at the bottom would be a helpful way to present additional info. Generally the best place for any discussion of why a feature is spec-compatible or not is the Compatibility section of the relevant reference page. regards, tom lane