Hello
I found so this extremely simple patch should be useful.
It helps for pattern SELECT fx();
There was thread about it.
Regards
Pavel
*** ./src/bin/psql/tab-complete.c.orig 2012-02-05 11:28:48.000000000 +0100
--- ./src/bin/psql/tab-complete.c 2012-02-19 20:05:05.241626625 +0100
***************
*** 2555,2562 ****
COMPLETE_WITH_CONST("IS");
/* SELECT */
! /* naah . . . */
!
/* SET, RESET, SHOW */
/* Complete with a variable name */
else if ((pg_strcasecmp(prev_wd, "SET") == 0 &&
--- 2555,2562 ----
COMPLETE_WITH_CONST("IS");
/* SELECT */
! else if (pg_strcasecmp(prev_wd, "SELECT") == 0)
! COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
/* SET, RESET, SHOW */
/* Complete with a variable name */
else if ((pg_strcasecmp(prev_wd, "SET") == 0 &&
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers