Consolidate and improve checking of key-column-attnum arguments for

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

Commit: 943676ceece087136a249de3844e9366d23a20cc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-06-15T16:22:51Z
Releases: 8.0.26
Consolidate and improve checking of key-column-attnum arguments for
dblink_build_sql_insert() and related functions.  In particular, be sure to
reject references to dropped and out-of-range column numbers.  The numbers
are still interpreted as physical column numbers, though, for backward
compatibility.

This patch replaces Joe's patch of 2010-02-03, which handled only some aspects
of the problem.

Files

PathChange+/−
contrib/dblink/dblink.c modified +90 −123
contrib/dblink/expected/dblink.out modified +3 −3