diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:25:01 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-01-29 19:25:01 +0000 |
commit | 7612c1d813e712edc87e0dca678ae014dbfa904b (patch) | |
tree | dee3f3ab574a18336b2ddeb241618e8fd3f05821 /contrib/rtree_gist/rtree_gist.c | |
parent | 5ecd9dc75a3dd9c2154be94250361878896fc43c (diff) | |
download | postgresql-7612c1d813e712edc87e0dca678ae014dbfa904b.tar.gz postgresql-7612c1d813e712edc87e0dca678ae014dbfa904b.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 'contrib/rtree_gist/rtree_gist.c')
0 files changed, 0 insertions, 0 deletions