Add more tab completion for CREATE TABLE in psql
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/tab-complete.c | modified | +30 −0 |
Discussion
- [PATCH] Improve tab completion for CREATE TABLE 15 messages · 2018-11-26 → 2018-12-23