Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(doc?): postgres-cdc requires Superuser role #8471

Closed
fuyufjh opened this issue Mar 10, 2023 · 1 comment · Fixed by #8539
Closed

bug(doc?): postgres-cdc requires Superuser role #8471

fuyufjh opened this issue Mar 10, 2023 · 1 comment · Fixed by #8539
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@fuyufjh
Copy link
Member

fuyufjh commented Mar 10, 2023

Describe the bug

postgres-cdc actually require Superuser role, otherwise

io.debezium.jdbc.JdbcConnectionException: ERROR: must be superuser to create FOR ALL TABLES publication

While the document says it only need REPLICATION and CREATEDB role. I followed it and then failed.

To Reproduce

No response

Expected behavior

No response

Additional context

See more discussion https://risingwave-labs.slack.com/archives/C03A2PSS8KU/p1678350102536159

@fuyufjh fuyufjh added the type/bug Something isn't working label Mar 10, 2023
@github-actions github-actions bot added this to the release-0.1.18 milestone Mar 10, 2023
@StrikeW
Copy link
Contributor

StrikeW commented Mar 13, 2023

This is related to the creation of the Publication in PG.
We use the default value (all-tables) of publication.autocreate.mode in the connector. Thus it will create a publication for all tables in the database which requires the user to have Superuser.
We plan to use the filtered config for it, then it wouldn't need to have Superuser role to create the publication. And I think we should suggest users create the required publication in advance before starting the connector. cc @WillyKidd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
2 participants