Revert "kvdb/postgres: remove global application level lock"

This reverts commit 43a1ca4f3d.
This commit is contained in:
Elle Mouton
2024-10-28 09:35:18 +02:00
parent a03d5fcb9e
commit 67419a7c0c
3 changed files with 53 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ func newPostgresBackend(ctx context.Context, config *Config, prefix string) (
Schema: "public",
TableNamePrefix: prefix,
SQLiteCmdReplacements: sqliteCmdReplacements,
WithTxLevelLock: true,
}
return sqlbase.NewSqlBackend(ctx, cfg)