Notices for redundant operations

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Notices for redundant operations
Дата
Msg-id Pine.LNX.4.44.0309060037100.1173-100000@peter.localdomain
обсуждение исходный текст
Ответы Re: Notices for redundant operations  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Notices for redundant operations  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Notices for redundant operations  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
I found a few notices and warnings that inform you that the command you
are executing has no effect because the object is already in the state you
want it.  I think these are useless, and there is also some inconsistency.
Does someone want to defend keeping them?

=> alter table test set without oids;
NOTICE:  table "test" is already WITHOUT OIDS

=> alter table test cluster on test_ix;
NOTICE:  table "test" is already being clustered on index "test_ix"

=> alter domain foo set not null;
NOTICE:  "foo" is already set to NOT NULL
[no such notice for altering a column, btw.]

=> listen foo;
WARNING:  already listening on "foo"

=> alter group test add user peter;
WARNING:  user "peter" is already in group "test"
[The SQL analogue with roles does not call for a completion condition in
this case.]

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: markw@osdl.org
Дата:
Сообщение: Re: Prelimiary DBT-2 Test results
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Notices for redundant operations