Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D82CB79786B for ; Wed, 17 Mar 2010 11:39:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 26450-05 for ; Wed, 17 Mar 2010 14:39:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 521D1643591 for ; Wed, 17 Mar 2010 11:39:23 -0300 (ADT) Received: by pva4 with SMTP id 4so528663pva.19 for ; Wed, 17 Mar 2010 07:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=vbkMN72WOywDGrZOTsg4iaY0ZthS/Xckfd3ggGpqNm8=; b=bXlvPEmtcGBFLmwC5y9mlSO6PCmmQUrOQQw8ocfxij1LZrcTBt9p8pT8xOOothDXRu 4kiVElTGMvgH9FJNMC7LNlNtEP8vKUs1NuuRLEsvDbaOH6m9+yVWCr7C56BY4aLG7T5N dMScYaKsnOIvFwVRoNzUDJ3hWOJdfZ0hHt5HQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ZAvLkNIQhMlwLBfKQNRl+MaRupjTXKywZxtEqXDGrfDCnddMrsYruTUzUEOmPzJ/KN Por7ZqJ1+z/MYuCrDyXNamM5jSgi2SFgFnHU6X4yhq8ISirbzoVepvEqzRWuTl5FlCLZ PxEjgS1tSIPiJwUU9TPD0k52rgdm7eWQ3/JOI= MIME-Version: 1.0 Received: by 10.140.83.22 with SMTP id g22mr810318rvb.49.1268836761385; Wed, 17 Mar 2010 07:39:21 -0700 (PDT) From: Josh Kupershmidt Date: Wed, 17 Mar 2010 10:38:59 -0400 Message-ID: <4ec1cf761003170738m5ec60f66o37676c7c939d0b79@mail.gmail.com> Subject: Incorrect SQL on CREATE INDEX page To: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/10 X-Sequence-Number: 5375 In the "Examples" section of the page for CREATE INDEX: http://www.postgresql.org/docs/current/static/sql-createindex.html it says: To create a GIN index with fast updates disabled: CREATE INDEX gin_idx ON documents_table (locations) WITH (fastupdate = off); This SQL fails with 'ERROR: unrecognized parameter "fastupdate"', as it is missing the USING clause. Correct syntax should be: CREATE INDEX gin_idx ON documents_table USING gin(locations) WITH (fastupdate = off); Also, a more minor quibble about the same section: the first example says: To create a B-tree index on the column title in the table films: CREATE UNIQUE INDEX title_idx ON films (title); Perhaps the mention of "B-tree" should be omitted here, since "USING btree" is not actually used in the SQL provided. Or is there an explicit guarantee that CREATE UNIQUE INDEX will always use a B-Tree documented somewhere? Josh