mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
docs: consistently uppercase index method and add spacing
Consistently uppercase index method names, e.g. GIN, and add space after the index method name and the parentheses enclosing the column names.
This commit is contained in:
@ -61,7 +61,7 @@
|
||||
<programlisting>
|
||||
CREATE TABLE test (a int4);
|
||||
-- create index
|
||||
CREATE INDEX testidx ON test USING gist (a);
|
||||
CREATE INDEX testidx ON test USING GIST (a);
|
||||
-- query
|
||||
SELECT * FROM test WHERE a < 10;
|
||||
-- nearest-neighbor search: find the ten entries closest to "42"
|
||||
@ -78,7 +78,7 @@ SELECT *, a <-> 42 AS dist FROM test ORDER BY a <-> 42 LIMIT 10;
|
||||
=> CREATE TABLE zoo (
|
||||
cage INTEGER,
|
||||
animal TEXT,
|
||||
EXCLUDE USING gist (cage WITH =, animal WITH <>)
|
||||
EXCLUDE USING GIST (cage WITH =, animal WITH <>)
|
||||
);
|
||||
|
||||
=> INSERT INTO zoo VALUES(123, 'zebra');
|
||||
|
Reference in New Issue
Block a user