Use pg_users instead of pg_shadow in latest PostgreSQL versions https://sourceforge.net/p/webadmin/bugs/4727/

This commit is contained in:
Jamie Cameron
2016-03-27 16:26:19 -07:00
parent 46d7022cc9
commit 40a90f7c71
6 changed files with 24 additions and 6 deletions

View File

@ -1273,5 +1273,17 @@ if ($job) {
}
}
# get_pg_shadow_table()
# Returns the table containing users, and the list of columns (comma-separated)
sub get_pg_shadow_table
{
if (&get_postgresql_version() >= 9.4) {
return ("pg_user", $pg_shadow_cols);
}
else {
return ("pg_shadow", $pg_shadow_cols);
}
}
1;