Skip to content

pg_dump failed #4

@pp-sepag

Description

@pp-sepag

Hi,

with this extension enabled, the tool, backing up the DB fails with the following error:

postgres@localhost:~$ pg_dump
pg_dump: error: query failed: ERROR:  SET TRANSACTION ISOLATION LEVEL must not be called in a subtransaction
pg_dump: error: query was: SET TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ ONLY

This error seems to occur in any PostgreSQL version.

The configuration looks like this

postgresql.conf
# Add settings for extensions here
session_preload_libraries = 'pg_statement_rollback'
pg_statement_rollback.enabled = on

Is this a known issue? Can the extension be temporarily disabled for the backup session, while keep it enabled globally? Or is there maybe another better solution?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions