OSDN Git Service

Eliminate some no-longer-needed workarounds for palloc's old behavior
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Apr 2006 17:50:18 +0000 (17:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Apr 2006 17:50:18 +0000 (17:50 +0000)
commitefe222268f39989b19b74d971becc19215b357d6
treed6d0281745746d2fbd15f4b9ecbe4e6386ba89b8
parentea6d54ee06428e610af62d11fcd4bcd34f9c4514
Eliminate some no-longer-needed workarounds for palloc's old behavior
of rejecting palloc(0).  Also, tweak like_selectivity() to avoid assuming
the presented pattern is nonempty; although that assumption is valid,
it doesn't really help much, and the new coding is more correct anyway
since it properly handles redundant wildcards.  In combination these
changes should eliminate a Coverity warning noted by Martijn.
src/backend/utils/adt/selfuncs.c