autocomplete_functions.diff
text/x-patch
Filename: autocomplete_functions.diff
Type: text/x-patch
Part: 0
Message:
patch: autocomplete for functions
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
| File | + | − |
|---|---|---|
| src/bin/psql/tab-complete.c | 2 | 2 |
*** ./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 &&