Skip to content

Re-prepare statements after schema changes #943

@levkk

Description

@levkk

Automatically re-prepare and retry transactions that hit this error:

cached plan must not change result type.

The implementation should do something like this:

  1. Catch the error
  2. Re-prepare statement in request
  3. Retry the request

To make this safe, make sure the request has only one Bind & Execute messages - any more and the request is not safe to retry because it can run the same query twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pgbouncerDrop-in replacement for PgBouncer.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions