Trailing semicolons in psql patch

From: greg(at)turnstep(dot)com
To: <pgsql-patches(at)postgresql(dot)org>
Subject: Trailing semicolons in psql patch
Date: 2001-09-27 22:15:19
Message-ID: 200109272215.SAA01329@johnson.mail.mindspring.net
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-patches


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How about a patch to strip semicolons in psql? I *know*
some of you have done this before:

\d mytable;

(Did not find any relation named "mytable;")

Since there is no reason to have a table named "mytable;"
why not just have psql do the smart thing and silently
strip the trailing semicolons? The attached patch only addresses
a few backslash commands as a proof of concept, but some others
could probably use it without harm. The patch affects:

\C
\c
\d
\e
\i
\o
\s
\z

Greg Sabino Mullane
greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200109271811

P.S. Re: microtiming: EXPLAIN ANALYZE sounds interesting, and as
soon as cvs is fixed so that anoncvs/postgresql works, I'll take
a look at it. :)

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iQA/AwUBO7OkzrybkGcUlkrIEQIPrgCgurQBAqZLt6m5JvbKOJyVIOx3ZQAAn0Wg
KD097oaniENYAeikbSM7LdZg
=erHC
-----END PGP SIGNATURE-----

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-09-28 00:15:07 Re: [PATCHES] fix for JDBC test suite
Previous Message Bruce Momjian 2001-09-27 19:37:14 Re: [PATCHES] Fix for broken JDBC's getColumn() (take 2)