PostgreSQL, Avoid shadowed variable.
PostgreSQL, also types and fields could be cached.