Re: Trailing semicolons in psql patch

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Trailing semicolons in psql patch
Дата
Msg-id Pine.LNX.4.30.0109300002520.629-100000@peter.localdomain
обсуждение исходный текст
Ответ на Trailing semicolons in psql patch  (greg@turnstep.com)
Ответы Re: Trailing semicolons in psql patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: More fixes for missing double quotes in the shell
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: More fixes for missing double quotes in the shell