Re: unexpected psql "feature"

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: unexpected psql "feature"
Дата
Msg-id CAKFQuwaoorvwWMP8NpQf8j9TQCgrNsvvkvoXc-bKh71qu1gUJw@mail.gmail.com
обсуждение исходный текст
Ответ на unexpected psql "feature"  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: unexpected psql "feature"  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On Wed, Jul 13, 2016 at 4:47 PM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:

I would suggest that:
 - the \; psql feature should be documented somewhere

​agreed
 
 - all results should be shown, not just the last one

disagree

# select 1 ; select 2 ;
?column?
--------------
1
(1 row)

?column?
-------------
2
(1 row)


​Having

# select 1 \; select 2 ;

Result in identical behavior seems undesirable.  At least now if you want to discard all intermediate work and just show the last statement you can do so without going to any great lengths.  If you really want both results don't use "\;".  This makes even more sense when the earlier statements are DML instead of SELECT.

David J.


 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Header and comments describing routines in incorrect shape in visibilitymap.c