pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Add support for Privileges in .pgschemaignore

Open edo-w-w opened this issue 8 months ago • 1 comments

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.

edo-w-w avatar Mar 06 '26 11:03 edo-w-w

Thank you so much! That was fast

edo-w-w avatar Mar 06 '26 16:03 edo-w-w