Skip to content

Commit 25ee05e

Browse files
committed
socket file read fix
1 parent 1e37fb9 commit 25ee05e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pglite-REL_17_4_WASM/repl.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@
180180
pglite.wasi: <a href=pglite.wasi download>Download file</a>
181181

182182
pglite.wasi + filesystem: <a href=pglite-wasi.tar.xz download>Download file</a>
183+
184+
pg_dump.wasm: <a href=bin/pg_dump.wasm download>Download file</a>
185+
183186
</pre><hr>
184187

185188
<div id="repl"></div>
@@ -748,9 +751,8 @@
748751
return
749752
}
750753
if (line.startsWith('!')){
751-
// setTimeout(async()=> { await os.exec("pg_dump", "-U", "postgres", "--inserts", "-j", "1", "-v", "-c", "-C", "-f", "/tmp/out.sql", "--disable-dollar-quoting", "postgres") } , 0 )
752754
setTimeout(async()=> { await os.exec("pg_dump", "-U", "postgres", "--inserts", "-Z0", "-j", "1", "-v", "-c", "-C", "-f", "/tmp/out.sql", "--disable-dollar-quoting", "postgres") } , 0 )
753-
// setTimeout(async()=> { await os.exec("pg_dump", "-U", "postgres", "--inserts", "-j", "1", "-v", "-c", "-C", "--disable-dollar-quoting", "template1") } , 0 )
755+
// setTimeout(async()=> { await os.exec("pg_dump", "-U", "postgres", "--inserts", "-j", "1", "-v", "-c", "-C", "-f", "/tmp/out.sql", "--disable-dollar-quoting", "template1") } , 0 )
754756
// setTimeout(async()=> { await os.exec("pg_dump", "host=/tmp/pglite/base sslmode=disable user=postgres dbname=template1") } , 0 )
755757
return
756758
}

portable/wasi-sdk-25.tar.xz

-764 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)