Notices for redundant operations - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Notices for redundant operations
Date
Msg-id Pine.LNX.4.44.0309060037100.1173-100000@peter.localdomain
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: markw@osdl.org
Date:
Subject: Re: Prelimiary DBT-2 Test results
Next
From: Alvaro Herrera
Date:
Subject: Re: Notices for redundant operations