Obsolete functions istrue, isfalse, etc.

Started by Peter Eisentrautover 17 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

There are four functions

istrue
isfalse
isnottrue
isnotfalse

defined in bool.c and exported to SQL that are not documented anywhere
and are not part of any spec that I would know of. The release notes
indicate that they were used to implement IS TRUE, IS FALSE, etc. until
PostgreSQL 6.2, so they were internal functions from the very beginning.
Should we remove those now? I suppose there is a slight chance that
10 year old dumps might contain references to them? But it is easy to
reimplement them in user-space should anyone need them.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: Obsolete functions istrue, isfalse, etc.

Peter Eisentraut <peter_e@gmx.net> writes:

istrue
isfalse
isnottrue
isnotfalse

Should we remove those now? I suppose there is a slight chance that
10 year old dumps might contain references to them? But it is easy to
reimplement them in user-space should anyone need them.

Of course the other side of the coin is that it's not costing us
anything noticeable to leave them there. But I have no strong objection
to removing 'em.

If we are going to get rid of them, I'd say we should also nuke
nullvalue() and nonnullvalue().

regards, tom lane