pgschema
pgschema copied to clipboard
Add support for Privileges in .pgschemaignore
Description:
Currently, .pgschemaignore supports ignoring database objects by type: [tables], [views], [functions], [procedures], [types], and [sequences].
However, there's no way to ignore GRANT or REVOKE statements in privilege files, which can cause issues when:
- Running pgschema plan with roles that don't exist in the temporary plan database
- Using an embedded or external plan database that doesn't have all production roles defined
- Managing schema migrations across different environments with different role configurations
Requested Feature:
Add support for a [privileges] section in .pgschemaignore to allow filtering privilege grants by role name or pattern.
Thank you so much! That was fast