"David Monarchi" <david.e.monarchi@gmail.com> writes:
> I want to go through a series of checks to see if I should set a field to
> null in the adServerLoadRow. I will not know in advance which fields I will
> need to check nor their data types.
> ...
> I'm constrained to use plpgsql,
You've been given an impossible set of constraints, because plpgsql is a
statically-typed language. Use another PL.
regards, tom lane