Hi Álvaro, Here's v2.
I removed the TailMatches(CONCURRENTLY MatchAny ON) and
TailMatches(CONCURRENTLY ON) rules, and the same CONCURRENTLY forms in
the rules after the table name. CREATE [UNIQUE] INDEX CONCURRENTLY
[name] ON now completes only as a whole command, using Matches(), still
without partitioned tables.
The plain CREATE INDEX rule keeps TailMatches(), but now skips
CONCURRENTLY. Otherwise, when nothing in the CONCURRENTLY list matches
what's typed, completion falls through to TailMatches("INDEX",
MatchAny, "ON"), which takes CONCURRENTLY as the index name and offers
the partitioned tables anyway.
If you'd rather not complete after CREATE INDEX CONCURRENTLY ON at all,
I can drop the Matches() rule and the new query.
Regards,
Ishjaap Singh
v2-0001-psql-Don-t-offer-partitioned-tables-after-CREATE-.patch
Description: Binary data
