mirror of
https://github.com/webmin/webmin.git
synced 2025-07-25 15:09:18 +00:00
Use pg_users instead of pg_shadow in latest PostgreSQL versions https://sourceforge.net/p/webadmin/bugs/4727/
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user