Обсуждение: Obsolete functions istrue, isfalse, etc.

Поиск
Список
Период
Сортировка

Obsolete functions istrue, isfalse, etc.

От
Peter Eisentraut
Дата:
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
isa 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.


Re: Obsolete functions istrue, isfalse, etc.

От
Tom Lane
Дата:
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