Skip to content

Commit b4405fd

Browse files
committed
fix: cache should skip unsupported commands
1 parent 95083b8 commit b4405fd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ volumes:
33

44
services:
55
db:
6-
image: postgres:17
6+
image: postgres:16
77
volumes:
88
- pgData:/var/lib/postgresql/data
99
ports:

scripts/cache.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ export async function restorePonderSync(connectionString, filePath) {
9393
if (trimmed.startsWith("\\")) {
9494
return;
9595
}
96+
if (trimmed.startsWith("SET transaction_timeout")) {
97+
return;
98+
}
9699
if (trimmed.startsWith("COPY ") && trimmed.endsWith("FROM stdin;")) {
97100
await flushSql();
98101
copyStream = client.query(copyFrom(trimmed));

0 commit comments

Comments
 (0)