diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:25:15 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:25:15 +0000 |
commit | 20112509bcd86152ec6462637bbf85b2bf9402d8 (patch) | |
tree | 61ea5fac537a43b59cc132ba637dffdfa5491c71 /src/backend/access/gist/gistscan.c | |
parent | d8b324ebd898c9555a3503f907fc3bbe4ffdd3d8 (diff) | |
download | postgresql-20112509bcd86152ec6462637bbf85b2bf9402d8.tar.gz postgresql-20112509bcd86152ec6462637bbf85b2bf9402d8.zip |
Replace argument-checking Asserts with regular test-and-elog checks in all
encoding conversion functions. These are not can't-happen cases because
it's possible to create a conversion with the wrong conversion function
for the specified encoding pair. That would lead to an Assert crash in
an Assert-enabled build, or incorrect conversion otherwise, neither of
which is desirable. This would be a DOS issue if production databases
were customarily built with asserts enabled, but fortunately that's not so.
Per an observation by Heikki.
Back-patch to all supported branches.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions