The DB connection should be provided in all cases as the first argument. The overloaded function signatures will be removed in the future. Warn about this change. Part of https://wiki.php.net/rfc/deprecations_php_8_1.
This should have been pgsql, not psql...
added support for object ids in pg_lo_create() and pg_lo_import() where available (based on code provided by Tatsuo Ishii)