Thread: pgsql: Minor enhancement to psql tab completion.

pgsql: Minor enhancement to psql tab completion.

From
neilc@postgresql.org (Neil Conway)
Date:
Log Message:
-----------
Minor enhancement to psql tab completion. If we see "CREATE TEMPORARY",
we can complete "TABLE". The previous coding only looked for "CREATE TEMP".

Note that I didn't add TEMPORARY to the list of suggested completions
after we've seen "CREATE", since TEMP is equivalent and more concise. But
if the user has already manually typed TEMPORARY, we may as well
complete TABLE for them.

Modified Files:
--------------
    pgsql/src/bin/psql:
        tab-complete.c (r1.162 -> r1.163)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/tab-complete.c.diff?r1=1.162&r2=1.163)

Re: pgsql: Minor enhancement to psql tab completion.

From
"Greg Sabino Mullane"
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> Minor enhancement to psql tab completion. If we see "CREATE TEMPORARY",
> we can complete "TABLE".

Can we? What about CREATE TEMP SEQUENCE and CREATE TEMP VIEW? :)

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200704261436
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFGMPEmvJuQZxSWSsgRA37bAKCbbYMx3bFJrtt/4b3xS+J6TeBimgCfV6i+
vjeedJtAGhRhh/rNZKPLrCQ=
=swm7
-----END PGP SIGNATURE-----



Re: pgsql: Minor enhancement to psql tab completion.

From
Neil Conway
Date:
On Thu, 2007-04-26 at 18:38 +0000, Greg Sabino Mullane wrote:
> Can we? What about CREATE TEMP SEQUENCE and CREATE TEMP VIEW? :)

Good point -- I added SEQUENCE and VIEW to the suggestion list.

-Neil