diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:24:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:24:19 +0000 |
commit | 31fb149a091324fcdb0eada87018cf3e43f812d3 (patch) | |
tree | 3f739b274e6ebe473d12614d45d2ebc7224ce23b /src/backend/access/gist/gist.c | |
parent | 3364386166f4d7b926d12d7b51645e9c7a3a1c7e (diff) | |
download | postgresql-31fb149a091324fcdb0eada87018cf3e43f812d3.tar.gz postgresql-31fb149a091324fcdb0eada87018cf3e43f812d3.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/gist.c')
0 files changed, 0 insertions, 0 deletions