Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Cannot use an app account with db-migrator #4118

Closed
rleffd opened this issue Oct 29, 2024 · 1 comment
Closed

Cannot use an app account with db-migrator #4118

rleffd opened this issue Oct 29, 2024 · 1 comment

Comments

@rleffd
Copy link

rleffd commented Oct 29, 2024

Hello,

A few weeks ago, I have reported that there was an error with the pg_partman extension when using an account that is not super admin.

A new commit fix this issue: #4104

I have build a new image with the two files modified, and now I have a new error:

ERROR: function partman.create_parent(unknown, unknown, unknown, p_start_partition => text) does not exist (SQLSTATE 42883)

RDS Postgres 16.4

Is there a way to run db-migrator without a super admin user on the postgres db ?

@rleffd rleffd added the bug label Oct 29, 2024
@tegioz
Copy link
Collaborator

tegioz commented Oct 29, 2024

Hi @rleffd 👋

It looks like the pg_partman extension hasn't been created yet. You still need to do that with a user that has privileges to do so, like you were trying to do in #4103 (comment). Once the extension is ready, you should be able to proceed with the migrations as we won't try to create it again if it already exists.

@tegioz tegioz removed the bug label Oct 29, 2024
@artifacthub artifacthub locked and limited conversation to collaborators Oct 29, 2024
@tegioz tegioz converted this issue into discussion #4119 Oct 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants