Remove TODO comment about ASC/DESC and NULLS FIRST/LAST index options.

As far as I can tell, the code already supports these index options, so
put in a small installcheck test exercising these index options and call
it good.
This commit is contained in:
Josh Kupershmidt
2012-10-21 16:54:33 -07:00
parent 0942141245
commit 05111376c8
3 changed files with 25 additions and 2 deletions

View File

@ -60,6 +60,12 @@ CREATE TABLE tbl_badindex (
n integer
);
CREATE TABLE tbl_idxopts (
i integer PRIMARY KEY,
t text
);
CREATE INDEX idxopts_t ON tbl_idxopts (t DESC NULLS LAST) WHERE (t != 'aaa');
--
-- insert data
--
@ -96,6 +102,8 @@ INSERT INTO tbl_badindex VALUES(1, 10);
INSERT INTO tbl_badindex VALUES(2, 10);
CREATE UNIQUE INDEX CONCURRENTLY idx_badindex_n ON tbl_badindex (n);
INSERT INTO tbl_idxopts VALUES (0, 'abc'), (1, 'aaa'), (2, NULL), (3, 'bbb');
--
-- before
--
@ -122,6 +130,7 @@ SELECT * FROM tbl_with_dropped_toast;
\d tbl_only_pkey
\d tbl_with_dropped_column
\d tbl_with_dropped_toast
\d tbl_idxopts
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster;
SELECT * FROM tbl_only_ckey ORDER BY 1;