Remove typmod checking from the recent security-related patches. It turns

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a8c3f161fb21f6f683ab6542bd6f93f04fa97ac6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-02-06T17:35:20Z
Releases: 8.3.0
Remove typmod checking from the recent security-related patches.  It turns
out that ExecEvalVar and friends don't necessarily have access to a tuple
descriptor with correct typmod: it definitely can contain -1, and possibly
might contain other values that are different from the Var's value.
Arguably this should be cleaned up someday, but it's not a simple change,
and in any case typmod discrepancies don't pose a security hazard.
Per reports from numerous people :-(

I'm not entirely sure whether the failure can occur in 8.0 --- the simple
test cases reported so far don't trigger it there.  But back-patch the
change all the way anyway.

Files

PathChange+/−
src/backend/executor/execQual.c modified +9 −9
src/backend/executor/execUtils.c modified +2 −5