Commit graph

3 commits

Author SHA1 Message Date
Julien Rouhaud
d102c8a640 Quote attribute names in deparsed index definition
Otherwise the emitted CREATE INDEX statement could be invalid.

Thanks to Oliver Rice for the report.
2024-04-17 23:11:23 +08:00
Julien Rouhaud
8eb71b0dda Make new regression tests for INCLUDE stable.
The regression tests included the oid of the hypothetical index.  Since the
hypothetical Oid generator was introduced, the sequence of generated Oids is
somewhat stable for a given PostgreSQL major version, but is defenitely not
across multiple major versions.

(cherry picked from commit 203a0200464e7bbe55bc386eca6cb0c938bb48c1)
2021-02-28 17:07:53 +08:00
Julien Rouhaud
3e3339b4b8 Check if access methods support an INCLUDE clause.
Trying to create an hypothetical index with an INCLUDE clause on pg10- will
obviously fail with a syntax error.

Also add regression test for the INCLUDE clause on btree indexes.
2021-02-04 00:21:53 +08:00