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