Add tab completion for CREATE SCHEMA in psql
commitc951e9042dd12db80cac4e9a50f198a1eead2036
authorMichael Paquier <michael@paquier.xyz>
Fri, 30 Jun 2023 01:28:08 +0000 (30 10:28 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 30 Jun 2023 01:28:08 +0000 (30 10:28 +0900)
tree056bad54e3cde0491467ffc81e4bffac1dac0379
parent23d8624fe52efff0e1c8a6e809d51671f9f549d6
Add tab completion for CREATE SCHEMA in psql

The following patterns are added for CREATE SCHEMA:
- AUTHORIZATION, without a schema name or after a schema name.
- Possible list of owner roles after AUTHORIZATION.
- CREATE and GRANT within the supported set of commands.
- Correct object types supported in an embedded CREATE SCHEMA command.

While on it, this commit adjusts the completion done after CREATE
UNLOGGED:
- Addition of SEQUENCE.
- Avoid suggesting MATERIALIZED VIEW in CREATE TABLE.

Author: Dagfinn Ilmari MannsÃ¥ker
Reviewed-by: Suraj Khamkar, Michael Paquier
Discussion: https://postgr.es/m/8735snihmz.fsf@wibble.ilmari.org
src/bin/psql/tab-complete.c