]> granicus.if.org Git - postgresql/commit
Repair incorrect check for coercion of unknown literal to ANYARRAY, a bug
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Oct 2006 20:21:04 +0000 (20:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Oct 2006 20:21:04 +0000 (20:21 +0000)
commit772c5ba31f31228d81444923ed630a89ff83056a
tree99940c1b9ed6399964c20a73fe4f9f09dbe0756b
parent8f2f180ff10034494d947162d080363aab554cfa
Repair incorrect check for coercion of unknown literal to ANYARRAY, a bug
I introduced in 7.4.1 :-(.  It's correct to allow unknown to be coerced to
ANY or ANYELEMENT, since it's a real-enough data type, but it most certainly
isn't an array datatype.  This can cause a backend crash but AFAICT is not
exploitable as a security hole.  Per report from Michael Fuhr.

Note: as fixed in HEAD, this changes a constant in the pg_stats view,
resulting in a change in the expected regression outputs.  The back-branch
patches have been hacked to avoid that, so that pre-existing installations
won't start failing their regression tests.
src/backend/parser/parse_coerce.c
src/test/regress/expected/rules.out