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

Re: Trailing semicolons in psql patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: <greg(at)turnstep(dot)com>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Trailing semicolons in psql patch
Date: 2001-09-29 22:54:53
Message-ID: Pine.LNX.4.30.0109300002520.629-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-patches
greg(at)turnstep(dot)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(at)gmx(dot)net   http://funkturm.homeip.net/~peter



In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-09-30 00:01:38
Subject: Re: More fixes for missing double quotes in the shell
Previous:From: Peter EisentrautDate: 2001-09-29 22:53:54
Subject: Re: More fixes for missing double quotes in the shell

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