Role can update the catalog is not support from PG >= 9.5.

We will set rolcatupdate same as rolsuper from the properties query for
PG >= 9.5
pull/3/head
Ashesh Vashi 2016-05-25 13:42:41 +05:30
parent a9121bede6
commit 798ff03818
2 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backform) {
options: switchOptions, disabled: 'readonly'
},{
id: 'rolcatupdate', label:'{{ _('Update Catalog?') }}',
type: 'switch', max_version: 90500, options: switchOptions,
type: 'switch', max_version: 90400, options: switchOptions,
group: '{{ _('Role Privileges') }}', disabled: function(m) {
return (m.get('read_only') || (!m.get('rolsuper')));
}

View File

@ -1,5 +1,5 @@
SELECT
r.oid, r.*,
r.oid, r.*, r.rolsuper as rolcatupdate,
pg_catalog.shobj_description(r.oid, 'pg_authid') AS description,
ARRAY(
SELECT