Skip to content

Commit a5d69d9

Browse files
committed
Change dump_db isolation level to "REPEATABLE READ"
This addresses the following error: ``` sql_error_code = 0A000 ERROR: cannot use serializable mode in a hot standby sql_error_code = 0A000 HINT: You can use REPEATABLE READ instead. sql_error_code = 0A000 STATEMENT: BEGIN ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE; ``` Because our application does not rely on any other `SERIALIZABLE` transactions, it should be fine to relax the isoluation level for database dumps to `REPEATABLE READ`. `DEFERRABLE` is dropped because it is only meaningful when combined with `SERIALIZABLE`.
1 parent d8b8235 commit a5d69d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/dump_db/dump-export.sql.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BEGIN ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE;
1+
BEGIN ISOLATION LEVEL REPEATABLE READ, READ ONLY;
22
{{~#each tables}}
33
{{~#if this.filter}}
44
\copy (

0 commit comments

Comments
 (0)