]> granicus.if.org Git - postgresql/commit
Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psql
authorMichael Paquier <michael@paquier.xyz>
Fri, 26 Oct 2018 14:36:40 +0000 (23:36 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 26 Oct 2018 14:36:40 +0000 (23:36 +0900)
commitfdf5eade96267d86af9efaf9213f5b3624e02354
treece0775f0a25052bab3597df0d34fe3b6b449cbb6
parentef4583238b9ceaca728a27aea711a5f467dc49d5
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
src/bin/psql/tab-complete.c