]> granicus.if.org Git - postgresql/commit
Further work on tab completion code: arrange for system catalogs to be
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Oct 2003 21:37:38 +0000 (21:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Oct 2003 21:37:38 +0000 (21:37 +0000)
commite84487f67a0d216f3db87b2558f1edd322a09e48
tree6860a84b1bb071574cc88729dba3525e437314ea
parentfcfbd434cce4d668457faea97ef1ba3f7fe47ada
Further work on tab completion code: arrange for system catalogs to be
offered for completion only when the input-so-far is at least 'pg_'.
This seems to be the best compromise behavior emerging from yesterday's
discussion.  While at it, refactor code to eliminate repetitive use of
nearly identical queries, which was exceedingly tedious to maintain.
Also const-ify code more thoroughly in hopes of moving constant data into
text segment, and remove unnecessary length limit on queries.
src/bin/psql/tab-complete.c