pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq
@ 2018-10-26 00:30 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2018-10-26 00:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psql

The change to accept EXECUTE FUNCTION as well as EXECUTE PROCEDURE in
CREATE TRIGGER (added by 0a63f99) forgot to tell psql's tab completion
system about this.  In passing, add tab completion of EXECUTE
FUNCTION/PROCEDURE after a complete WHEN ( … ) clause.

This change is version-aware, with FUNCTION being selected automatically
instead of PROCEDURE depending on the backend version, PROCEDURE being
an historical grammar kept for compatibility and considered as
deprecated in v11.

Author: Dagfinn Ilmari Mannsåker
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/d8jmur4q4yc.fsf@dalvik.ping.uio.no

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/292ef6e2778afb3ecea250fc50326587543ae144

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq
@ 2018-10-26 14:37 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2018-10-26 14:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psql

The change to accept EXECUTE FUNCTION as well as EXECUTE PROCEDURE in
CREATE TRIGGER (added by 0a63f99) forgot to tell psql's tab completion
system about this.

This change is version-aware, with FUNCTION being selected automatically
instead of PROCEDURE depending on the backend version, PROCEDURE being
an historical grammar kept for compatibility and considered as
deprecated in v11.

Author: Dagfinn Ilmari Mannsåker
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/d8jmur4q4yc.fsf@dalvik.ping.uio.no

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fdf5eade96267d86af9efaf9213f5b3624e02354

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-10-26 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26 00:30 pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq Michael Paquier <michael@paquier.xyz>
2018-10-26 14:37 pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox