Fixed error in PL/PgSQL SELECT s when returning no rows.
Fixed psql backslash causing core dump.
Fixed referential integrity permission.
pg_dump cleanups and fixes.