Skip to content

Commit 4ddc0fb

Browse files
committed
skip some ext in wasi mode
1 parent 22dd5ea commit 4ddc0fb

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

extra/pg_ivm.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/bin/bash
22

3+
34
. wasm-build/extension.sh
45

6+
if $WASI
7+
then
8+
echo "wasi not supported for pg_ivm"
9+
exit 0
10+
fi
11+
512
pushd $PG_EXTRA
613
if [ -d pg_ivm ]
714
then

pglite-REL_17_4_WASM/pg_main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,6 @@ __attribute__ ((export_name("pgl_backend")))
396396
#endif
397397
setenv("PGUSER", PGUSER, 1);
398398

399-
PDEBUG("--------- setting configuration ---------------------");
400-
if (!SelectConfigFiles(userDoption, "postgres"))
401-
puts("config error");
402-
else
403-
PDEBUG("cfg ok");
404399

405400

406401
AsyncPostgresSingleUserMain(single_argc, single_argv, PGUSER, async_restart);

pglite-REL_17_4_WASM/pgl_mains.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ PDEBUG("# 254:"__FILE__);
274274
PDEBUG("# 257:"__FILE__);
275275
// if (!async_restart) /* Parse command-line options. */
276276
process_postgres_switches(argc, argv, PGC_POSTMASTER, &dbname);
277+
278+
277279
PDEBUG("# 260:"__FILE__);
278280
/* Must have gotten a database name, or have a default (the username) */
279281
if (dbname == NULL)
@@ -286,13 +288,13 @@ PDEBUG("# 260:"__FILE__);
286288
progname)));
287289
}
288290

289-
if (async_restart) goto async_db_change;
290291
PDEBUG("# 273:SelectConfigFiles "__FILE__);
291292
/* Acquire configuration parameters */
292293
if (!SelectConfigFiles(userDoption, progname)) {
293294
proc_exit(1);
294295
}
295296
PDEBUG("# 278:SelectConfigFiles "__FILE__);
297+
if (async_restart) goto async_db_change;
296298
checkDataDir();
297299
ChangeToDataDir();
298300

0 commit comments

Comments
 (0)