psql: Fix tab completion for DROP INDEX CONCURRENTLY

psql offered CASCADE after DROP INDEX CONCURRENTLY and an index name,
even though CASCADE is not supported with CONCURRENTLY. Offer only
RESTRICT in this case, while retaining both CASCADE and RESTRICT
for ordinary DROP INDEX.

Backpatch to all supported versions.

Author: Sho Ito <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Shihao Zhong <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: 
https://postgr.es/m/cag7l5+7kxgvjugcgxzyqrt7uysc9iytayzx-7yyqtfyxjhv...@mail.gmail.com
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0d8bfc5e3663ae5a6d1ae4e4316cdaa8480e168e

Modified Files
--------------
src/bin/psql/tab-complete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reply via email to