Restore option deprecations.
Remove deprecation warnings from Postgres tests.

And restore the checking of the proper name variable in Target.