Skip to content

Pooler issue after upgrade to 1.5. With "error: unexpected response from login query". #1060

@JazzShapka

Description

@JazzShapka

Hi All!
I ran into the following problem. I worked with operator version 1.4. I created 2 postgres clusters ("dev" and "staging") with identical configurations and databases names (in different namespace k8s), then I restored sql-backup of the database from "dev" to the "staging" database, while replication and backups on s3 continued to work correctly. After that, I updated the operator to version 1.5 and tried to configure the connection through pooler. For the base from the "dev" cluster, everything worked correctly. And when connecting to the pooler for the "staging" cluster, I encountered the error "error: unexpected response from login query". Then I noticed that pooler schemes were not created automatically for the "staging" database, I think this is due to the fact that I restored in the "staging" base from the sql-backup and the operator didn’t touch upon them
when updating. This is perceived as a mistake. :(

Now I try understand what is missing for the base on "staging" to use pooler.

Any thoughts?

UPD. Yes. This is the problem of the lack of a "pooler" scheme for the required database. After adding the "pooler" scheme and assigning rights for the roles pooler (u) and postgres (uc), the connection through pgbouncer works without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions