Skip to content

Instantly share code, notes, and snippets.

@cozingo
Last active August 20, 2020 08:50
Show Gist options
  • Save cozingo/fca599c5d2ee2e8d06e08f9f22654685 to your computer and use it in GitHub Desktop.
Save cozingo/fca599c5d2ee2e8d06e08f9f22654685 to your computer and use it in GitHub Desktop.
postgre
edit /usr/share/phppgadmin/classes/database/Postgres.php
comment this on line 1045:
$sql = "SELECT relhasoids FROM pg_catalog.pg_class WHERE relname='{$table}'
AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{$c_schema}')";
$rs = $this->selectSet($sql);
if ($rs->recordCount() != 1) return null;
else {
$rs->fields['relhasoids'] = $this->phpBool($rs->fields['relhasoids']);
return $rs->fields['relhasoids'];
}
https://gorails.com/guides/upgrading-postgresql-version-on-ubuntu-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment