Add more tab completion for CREATE TABLE in psql

Enterprise / PostgreSQL - Michael Paquier [paquier.xyz] - 20 December 2018 05:29 EST

The following completion patterns are added:
- CREATE TABLE with '(', OF or PARTITION OF.
- CREATE TABLE 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

4cba9c2a33 Add more tab completion for CREATE TABLE in psql
src/bin/psql/tab-complete.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)

Upstream: git.postgresql.org


  • Share