Add regression test for expression indexes.

This has already been broken twice, make sure it won't happen again.
This commit is contained in:
Julien Rouhaud 2016-06-07 20:10:04 +02:00
parent 2225e71e22
commit 022ac3396e
2 changed files with 10 additions and 0 deletions

View file

@ -139,3 +139,10 @@ SELECT hypopg_reset();
(1 row)
-- indexes on expression are not handle
SELECT hypopg_create_index('CREATE INDEX ON hypo (md5(val))');
WARNING: hypopg: hypothetical indexes on expression are not supported yet
hypopg_create_index
---------------------
(0 rows)

View file

@ -89,3 +89,6 @@ SELECT hypopg_drop_index(indexrelid) FROM hypopg() ORDER BY indexrelid LIMIT 1;
-- Remove all the hypothetical indexes
SELECT hypopg_reset();
-- indexes on expression are not handle
SELECT hypopg_create_index('CREATE INDEX ON hypo (md5(val))');