public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Josh Kupershmidt <[email protected]>
Cc: [email protected]
Subject: Re: Incorrect SQL on CREATE INDEX page
Date: Wed, 17 Mar 2010 11:13:45 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Josh Kupershmidt <[email protected]> writes:
> 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.
Ooops. You're right, that's definitely a mistake. Will fix.
> 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?
It's pointed out further up the page that btree is the default access
method.
regards, tom lane
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Incorrect SQL on CREATE INDEX page
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox