pgsql: Add more tab completion for CREATE TABLE in psql

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more tab completion for CREATE TABLE in psql
Date: 2018-12-20 05:32:40
Message-ID: E1gZqwq-00056K-L2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4cba9c2a33f145f76575454b0f32a0e32dcd4335

Modified Files
--------------
src/bin/psql/tab-complete.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-12-20 05:53:26 Re: pgsql: Remove function names from error messages
Previous Message Tom Lane 2018-12-20 04:39:23 Re: pgsql: Remove function names from error messages