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