Skip to content

'cannot use serializable mode in a hot standby' error on PostgreSQL #13

@edgenard

Description

@edgenard

I'm running Postgresql 13.4

I'm sorry I dont have more information but I don't understand what this error means. The full stack trace is below

org.postgresql.util.PSQLException: ERROR: cannot use serializable mode in a hot standby
  Detail: "default_transaction_isolation" is set to "serializable".
  Hint: You can use "SET default_transaction_isolation = 'repeatable read'" to change the default.
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2675)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2365)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:355)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:490)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:408)
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:329)
	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:315)
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:291)
	at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:243)
	at org.postgresql.jdbc.PgDatabaseMetaData.getSchemas(PgDatabaseMetaData.java:1453)
	at org.postgresql.jdbc.PgDatabaseMetaData.getSchemas(PgDatabaseMetaData.java:1434)
	at com.ultorg.database.SQLConnection.e(SourceFile:618)
	at com.ultorg.database.SQLConnection.getDatabasesAndTables(SourceFile:539)
	at com.ultorg.project.model.m$1.run(SourceFile:1088)
	at com.ultorg.project.e.a(SourceFile:192)
	at com.ultorg.project.e.runTask(SourceFile:134)
	at com.ultorg.project.model.m.getTableList(SourceFile:83)
Caused: com.ultorg.database.ImportException
	at com.ultorg.project.model.m.getTableList(SourceFile:92)
[catch] at com.ultorg.project.c.b(SourceFile:470)
	at com.ultorg.project.c.c(SourceFile:449)
	at com.ultorg.project.i.a(SourceFile:503)
	at com.ultorg.project.i$a.b(SourceFile:1127)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions