Add more tab completion for CREATE TABLE in psql

Michael Paquier <michael@paquier.xyz>

Commit: 4cba9c2a33f145f76575454b0f32a0e32dcd4335
Author: Michael Paquier <michael@paquier.xyz>
Date: 2018-12-20T05:29:15Z
Releases: 12.0
Add more tab completion for CREATE TABLE in psql

The following completion patterns are added:
- CREATE TABLE <name> with '(', OF or PARTITION OF.
- CREATE TABLE <name> OF with list of composite types.
- CREATE TABLE name (...) with PARTITION OF, WITH, TABLESPACE, ON
COMMIT (depending on the presence of a temporary table).
- CREATE TABLE ON COMMIT with actions (only for temporary tables).

Author: Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/d8j1s77kdbb.fsf@dalvik.ping.uio.no

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +30 −0

Discussion