Re: Notices for redundant operations - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Notices for redundant operations
Date
Msg-id 28146.1062806144@sss.pgh.pa.us
Whole thread Raw
In response to Notices for redundant operations  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> 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?

Do you think the commands should just silently do nothing?  That seems
strange to me.  I like giving a NOTICE (not WARNING though, those guys
should be changed).

I guess the best argument for putting out a notice is that there's some
chance the user is making a mistake, eg, telling you SET NOT NULL when
what he really wanted to do was DROP NOT NULL.  If that argument doesn't
impress people then I suppose being silent is the thing to do.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: FK type mismatches?
Next
From:
Date:
Subject: Re: Stats Collector Error 7.4beta1 and 7.4beta2