这是indexloc提供的服务,不要输入任何密码
Skip to content

Schema diff doesnt pickup change in column GRANTs (RM #7631) #5269

@dpage

Description

@dpage

Issue migrated from Redmine: https://redmine.postgresql.org/issues/7631
Originally created by Pocin Pocin at 2022-08-21 16:41:32 UTC.

# create database source;
# create database target;
# create role bob;
# \c source
source# create table foo(id text, amount text);
source# grant select, insert(id, amount), update(amount) on foo to bob;

source# \c target
target# create table foo(id text, amount text);
target# grant select, insert(id, amount), update(id, amount) on foo to bob;

the difference is the @update@ on @target.public.foo.amount.id@

the diff is empty but i would expect something along the lines of

GRANT INSERT(id), UPDATE(id) on foo to bob;

Or is the safe thing to do here REVOKE ALL on foo from bob; and apply the GRANTS from the target?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions