aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-01-29 19:23:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-01-29 19:23:42 +0000
commit0d65eea3dac92b1a1bd5e39134958a1213d13d14 (patch)
tree7ad231c8c0d852ac6ea5cc6a6be157c4f8851b1b /src/backend/utils/adt/arrayfuncs.c
parentb5b3134813a089ee84d0b068c1781ebfb2a63ec6 (diff)
downloadpostgresql-0d65eea3dac92b1a1bd5e39134958a1213d13d14.tar.gz
postgresql-0d65eea3dac92b1a1bd5e39134958a1213d13d14.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/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions