Skip to content

Commit 8c35aeb

Browse files
committed
pg_uuidv7
1 parent ff44835 commit 8c35aeb

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

extra/pg_uuidv7.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
. wasm-build/extension.sh
44

55
pushd $PG_EXTRA
6-
if [ -d pg_uuiv7 ]
6+
if [ -d pg_uuidv7 ]
77
then
8-
echo using local pg_uuiv7
8+
echo using local pg_uuidv7
99
else
1010
wget https://github.com/fboulnois/pg_uuidv7/archive/refs/tags/v1.6.0.tar.gz -O-|tar xfz -
11-
mv pg_uuidv7-*.*.* pg_uuiv7
11+
mv pg_uuidv7-1.*.* pg_uuidv7
1212
if $WASI
1313
then
1414
echo "no patching"
@@ -19,8 +19,8 @@ pushd $PG_EXTRA
1919
fi
2020
popd
2121

22-
pushd $PG_EXTRA/pg_uuiv7
22+
pushd $PG_EXTRA/pg_uuidv7
2323
PG_CONFIG=${PGROOT}/bin/pg_config emmake make OPTFLAGS="" install || exit 25
2424
popd
2525

26-
26+
read

pglite-REL_17_4_WASM/repl.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@
334334
`
335335
break
336336

337+
case 3:
338+
data = `
339+
CREATE EXTENSION IF NOT EXISTS pg_uuidv7;
340+
`
341+
break
342+
343+
337344
/* pg_ivm
338345
case 3:
339346
data = `
@@ -466,7 +473,8 @@
466473

467474
async function delayed_init() {
468475
await Module.load_package("vector", "vector.tar.gz")
469-
await Module.load_package("uuid-ossp", "uuid-ossp.tar.gz")
476+
//await Module.load_package("uuid-ossp", "uuid-ossp.tar.gz")
477+
await Module.load_package("uuid-ossp", "pg_uuidv7.tar.gz")
470478
// await Module.load_package("pg_ivm", "pg_ivm.tar.gz")
471479

472480
await Module.load_package("pg_stat_statements", "pg_stat_statements.tar.gz")
@@ -763,6 +771,7 @@
763771
return
764772

765773
case "cat":
774+
console.warn(`cat "${arg}"`)
766775
for (const line of os.codec.decode(vm.FS.readFile(arg)).split("\n")) {
767776
vm.vt.xterm.write( line + "\r\n" )
768777
}

0 commit comments

Comments
 (0)