pgsql-server/src/bin/psql tab-complete.c

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/bin/psql tab-complete.c
Date: 2003-10-30 21:37:39
Message-ID: 20031030213739.1C4C5D1B51A@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)svr1(dot)postgresql(dot)org 03/10/30 17:37:39

Modified files:
src/bin/psql : tab-complete.c

Log message:
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.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-10-31 00:18:55 pgsql-server/ oc/src/sgml/libpgtcl.sgml rc/int ...
Previous Message Bruce Momjian 2003-10-30 20:49:47 pgsql-server/ /HISTORY oc/src/sgml/release.sgml