Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group