Re: Trailing semicolons in psql patch - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Trailing semicolons in psql patch
Date
Msg-id Pine.LNX.4.30.0109300002520.629-100000@peter.localdomain
Whole thread Raw
In response to Trailing semicolons in psql patch  (greg@turnstep.com)
Responses Re: Trailing semicolons in psql patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
greg@turnstep.com writes:

> 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?

"Stripping" semicolons is one thing, accepting semicolons as command
separators is another.  Your patch seems to handle the case of

\d mytable;

but it doesn't handle any of

\d mytable; \d yourtable
\d mytable;<space>
\d mytable; select * from mytable;

Anything short of that plus...

> The attached patch only addresses
> a few backslash commands as a proof of concept,

...is just going to create some other confusion in place of the current
one.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: More fixes for missing double quotes in the shell
Next
From: Bruce Momjian
Date:
Subject: Re: More fixes for missing double quotes in the shell