Re: Command tags in create/drop scripts

Поиск
Список
Период
Сортировка
От CAJ CAJ
Тема Re: Command tags in create/drop scripts
Дата
Msg-id 467669b30705311006w5d2863ddlb7644589ca8e1dcd@mail.gmail.com
обсуждение исходный текст
Ответ на Command tags in create/drop scripts  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Command tags in create/drop scripts  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On 5/31/07, Peter Eisentraut <peter_e@gmx.net> wrote:
The messages output by the "scripts" always seemed unnecessary to me, e.g.,

$ createdb foo
CREATE DATABASE

A Unix program (hi Magnus) shouldn't need to say anything if the requested
action succeeded.

I believe the history of this output is actually that these scripts simply
used to call psql and no one really questioned why the output should be this
way.  There are also some inconsistencies, e.g., createlang doesn't output
anything, and createuser outputs CREATE ROLE.

I would just remove all this, but I suppose this will be controversial?


Can it me made to return an integer like most UNIX commands do? This helps immensely when writing shell scripts.

Thanks!

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query plan degradation 8.2 --> 8.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Command tags in create/drop scripts