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.5pull/3/head
parent
a9121bede6
commit
798ff03818
|
@ -427,7 +427,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backform) {
|
||||||
options: switchOptions, disabled: 'readonly'
|
options: switchOptions, disabled: 'readonly'
|
||||||
},{
|
},{
|
||||||
id: 'rolcatupdate', label:'{{ _('Update Catalog?') }}',
|
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) {
|
group: '{{ _('Role Privileges') }}', disabled: function(m) {
|
||||||
return (m.get('read_only') || (!m.get('rolsuper')));
|
return (m.get('read_only') || (!m.get('rolsuper')));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SELECT
|
SELECT
|
||||||
r.oid, r.*,
|
r.oid, r.*, r.rolsuper as rolcatupdate,
|
||||||
pg_catalog.shobj_description(r.oid, 'pg_authid') AS description,
|
pg_catalog.shobj_description(r.oid, 'pg_authid') AS description,
|
||||||
ARRAY(
|
ARRAY(
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in New Issue