psql.diff

text/x-diff

Filename: psql.diff
Type: text/x-diff
Part: 0
Message: Re: psql: tab-completion fails SET var=

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: unified
File+
src/bin/psql/tab-complete.c 0 0
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
new file mode 100644
index 8a74877..bfba1dd
*** a/src/bin/psql/tab-complete.c
--- b/src/bin/psql/tab-complete.c
*************** psql_completion(char *text, int start, i
*** 2842,2847 ****
--- 2842,2848 ----
  			 pg_strcasecmp(prev_wd, "TABLESPACE") != 0 &&
  			 pg_strcasecmp(prev_wd, "SCHEMA") != 0 &&
  			 prev_wd[strlen(prev_wd) - 1] != ')' &&
+ 			 prev_wd[strlen(prev_wd) - 1] != '=' &&
  			 pg_strcasecmp(prev4_wd, "DOMAIN") != 0)
  		COMPLETE_WITH_CONST("TO");
  	/* Suggest possible variable values */