electric-sql / pglite

Lightweight WASM Postgres with real-time, reactive bindings.
https://pglite.dev
Apache License 2.0
9.42k stars 203 forks source link

Extension in WebWorker: Failed to fetch (But only in debug mode) #317

Open Bewinxed opened 2 months ago

Bewinxed commented 2 months ago

I'm developing a chrome extension, this is the worker code, which i managed to get working in production:

However, In debug, I get the following:

worker code

import { PGlite } from '../../../../node_modules/@electric-sql/pglite/dist/index.js'
import { worker } from '../../../../node_modules/@electric-sql/pglite/dist/worker/index.js'
import { pg_trgm } from '../../../../node_modules/@electric-sql/pglite/dist/contrib/pg_trgm.js'

worker({
  async init(options) {
    const pg = new PGlite('opfs-ahp://neotab/neotab.db', {
      ...options,
      debug: import.meta.env.DEV,
      extensions: { pg_trgm },
    })
    // If you want run any specific setup code for the worker process, you can do it here.
    return pg
  },
})
console.log('Worker process started')

if debug is false, i get Failed to fetch extension: pg_trgm TypeError: Failed to fetch image

if debug is true, I see the following output, is this a false positive? as it seems in subsequent messages pg trgm is available.

Mainly, this issue happens in the newtab page (the one i want to use), but on localhost:5173/newtab, the error does not show up.

Worker process started
interface.ts:1 pglite: found DB, resuming
interface.ts:1 pgfs:ext OK /tmp/pglite/lib/postgresql/pg_trgm.so []
postgres.js:2420 FIXME: int shmctl (int __shmid=666, int __cmd=2, struct shmid_ds *__buf=0x4611b98)
postgres.js:2420 # FIXING: void *shmat (int __shmid=666, const void *__shmaddr=0, int __shmflg=0)
postgres.js:2420 # FIXING: int shmget (key_t __key=55, size_t __size=40, int __shmflg=1920) pagesize default=65536
postgres.js:2420 # FIXING: void *shmat (int __shmid=666, const void *__shmaddr=0, int __shmflg=0)
postgres.js:2457  2024-09-12 17:27:22.059 GMT [42] LOG:  database system was interrupted; last known up at 2024-09-12 17:27:11 GMT
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$StartupXLOG @ postgres.wasm:0x507274
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  # 117(FATAL): insert_timeout(TimeoutId id=11, int index=0): /home/runner/work/pglite/pglite/postgresql-16.4/src/backend/utils/misc/timeout.c
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$__stdio_write @ postgres.wasm:0x6db42a
$__fwritex @ postgres.wasm:0x6e035c
$fwrite @ postgres.wasm:0x6e041f
$pg_fprintf @ postgres.wasm:0x64f0f7
$enable_timeout @ postgres.wasm:0x1f13d4
$enable_timeout_every @ postgres.wasm:0x1f1834
$begin_startup_progress_phase @ postgres.wasm:0x289469
$SyncDataDirectory @ postgres.wasm:0x40f0fc
$StartupXLOG @ postgres.wasm:0x507678
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.111 GMT [42] DEBUG:  checkpoint record is at 0/63F428
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52cd44
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.111 GMT [42] DEBUG:  redo record is at 0/63F428; shutdown true
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d0b6
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.111 GMT [42] DEBUG:  next transaction ID: 735; next OID: 20192
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d10d
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  next MultiXactId: 1; next MultiXactOffset: 0
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d164
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  oldest unfrozen transaction ID: 723, in database 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d1b9
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  oldest MultiXactId: 1, in database 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d20e
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  commit timestamp Xid oldest/newest: 0/0
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d263
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] LOG:  database system was not properly shut down; automatic recovery in progress
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$InitWalRecovery @ postgres.wasm:0x52d454
$StartupXLOG @ postgres.wasm:0x5076a1
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  transaction ID wrap limit is 2147484370, limited by database with OID 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$SetTransactionIdLimit @ postgres.wasm:0x51f213
$StartupXLOG @ postgres.wasm:0x507756
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.112 GMT [42] DEBUG:  MultiXactId wrap limit is 2147483648, limited by database with OID 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$SetMultiXactIdLimit @ postgres.wasm:0x528fd9
$StartupXLOG @ postgres.wasm:0x507762
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.114 GMT [42] DEBUG:  starting up replication slots
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$StartupReplicationSlots @ postgres.wasm:0x338991
$StartupXLOG @ postgres.wasm:0x50778a
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.115 GMT [42] DEBUG:  xmin required by slots: data 0, catalog 0
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$ProcArraySetReplicationSlotXmin @ postgres.wasm:0x42a0b9
$ReplicationSlotsComputeRequiredXmin @ postgres.wasm:0x337711
$StartupReplicationSlots @ postgres.wasm:0x3395de
$StartupXLOG @ postgres.wasm:0x50778a
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.116 GMT [42] DEBUG:  resetting unlogged relations: cleanup 1 init 0
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$ResetUnloggedRelations @ postgres.wasm:0x409c1b
$StartupXLOG @ postgres.wasm:0x5079e3
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.117 GMT [42] LOG:  invalid record length at 0/63F4A0: expected at least 24, got 0
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$ReadRecord @ postgres.wasm:0x52ecd0
$PerformWalRecovery @ postgres.wasm:0x5302be
$StartupXLOG @ postgres.wasm:0x507b00
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.117 GMT [42] LOG:  redo is not required
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$PerformWalRecovery @ postgres.wasm:0x5318c7
$StartupXLOG @ postgres.wasm:0x507b00
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.117 GMT [42] DEBUG:  resetting unlogged relations: cleanup 0 init 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$ResetUnloggedRelations @ postgres.wasm:0x409c1b
$StartupXLOG @ postgres.wasm:0x507c7f
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.119 GMT [42] DEBUG:  MultiXactId wrap limit is 2147483648, limited by database with OID 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$SetMultiXactIdLimit @ postgres.wasm:0x528fd9
$TrimMultiXact @ postgres.wasm:0x528eb8
$StartupXLOG @ postgres.wasm:0x5088de
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.120 GMT [42] DEBUG:  MultiXact member stop limit is now 4294914944 based on MultiXact 1
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$SetMultiXactIdLimit @ postgres.wasm:0x529218
$TrimMultiXact @ postgres.wasm:0x528eb8
$StartupXLOG @ postgres.wasm:0x5088de
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2457  2024-09-12 17:27:22.121 GMT [42] DEBUG:  performing replication slot checkpoint
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$CheckPointReplicationSlots @ postgres.wasm:0x338870
$CheckPointGuts @ postgres.wasm:0x50b278
$CreateCheckPoint @ postgres.wasm:0x50ac07
$RequestCheckpoint @ postgres.wasm:0x28766c
$StartupXLOG @ postgres.wasm:0x508eda
$InitPostgres @ postgres.wasm:0x98cb8
$AsyncPostgresSingleUserMain @ postgres.wasm:0x264cbc
$pg_initdb @ postgres.wasm:0x341254
Module._pg_initdb @ postgres.js:10397
Ue @ pglite.ts:368
await in Ue
Z @ pglite.ts:418
init @ worker-dev.js:9
te @ index.ts:538
await in te
(anonymous) @ worker-dev.js:7
postgres.js:2420 
postgres.js:2420 PostgreSQL stand-alone backend 16.4
base.ts:327 runExec SET search_path TO public; undefined
postgres.js:2420 wire message in cma buffer !
postgres.js:2420 # 141: io_init  --------- CLIENT (ready) ---------
postgres.js:2420 pg> 
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???
postgres.js:2420 wire message in cma buffer !
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???
postgres.js:2420 wire message in cma buffer !
postgres.js:2457  2024-09-12 17:27:22.184 GMT [42] NOTICE:  extension "pg_trgm" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$CreateExtension @ postgres.wasm:0x61ec59
invoke_viii @ postgres.js:11127
$ProcessUtilitySlow @ postgres.wasm:0x277426
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.185 GMT [42] NOTICE:  relation "bookmarks" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$transformCreateStmt @ postgres.wasm:0x343b00
invoke_iii @ postgres.js:11116
$ProcessUtilitySlow @ postgres.wasm:0x27423c
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.189 GMT [42] NOTICE:  relation "bookmarks_snippet_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.189 GMT [42] NOTICE:  relation "bookmarks_title_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.190 GMT [42] NOTICE:  relation "bookmarks_url_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.190 GMT [42] NOTICE:  relation "bookmarks_tags_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2420 pg> 
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???
pglite.ts:598  Yt {length: 110, message: 'extension "pg_trgm" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42710', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 118, message: 'relation "bookmarks" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 115, message: 'relation "bookmarks_snippet_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 113, message: 'relation "bookmarks_title_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 111, message: 'relation "bookmarks_url_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 112, message: 'relation "bookmarks_tags_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2420 wire message in cma buffer !
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???
postgres.js:2420 wire message in cma buffer !
postgres.js:2457  2024-09-12 17:27:22.199 GMT [42] NOTICE:  extension "pg_trgm" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$CreateExtension @ postgres.wasm:0x61ec59
invoke_viii @ postgres.js:11127
$ProcessUtilitySlow @ postgres.wasm:0x277426
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.199 GMT [42] NOTICE:  relation "history" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$transformCreateStmt @ postgres.wasm:0x343b00
invoke_iii @ postgres.js:11116
$ProcessUtilitySlow @ postgres.wasm:0x27423c
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.199 GMT [42] NOTICE:  relation "history_snippet_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.200 GMT [42] NOTICE:  relation "history_title_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.200 GMT [42] NOTICE:  relation "history_url_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2457  2024-09-12 17:27:22.200 GMT [42] NOTICE:  relation "history_tags_idx" already exists, skipping
put_char @ postgres.js:2457
write @ postgres.js:2403
write @ postgres.js:4646
doWritev @ postgres.js:8679
_fd_write @ postgres.js:8769
$write @ postgres.wasm:0x6f050b
$EmitErrorReport @ postgres.wasm:0x206f87
$errfinish @ postgres.wasm:0x205ae0
$index_create @ postgres.wasm:0x48991b
$DefineIndex @ postgres.wasm:0x576c34
invoke_viiiiiiiiiiii @ postgres.js:11348
$ProcessUtilitySlow @ postgres.wasm:0x277f3b
$standard_ProcessUtility @ postgres.wasm:0x27345f
$ProcessUtility @ postgres.wasm:0x272815
$PortalRunUtility @ postgres.wasm:0x27be1f
$PortalRunMulti @ postgres.wasm:0x27bcff
invoke_viiiiii @ postgres.js:11337
$PortalRun @ postgres.wasm:0x27b2cb
$exec_simple_query @ postgres.wasm:0x26d17d
invoke_vi @ postgres.js:11160
$interactive_one @ postgres.wasm:0x26a5b4
execProtocolRaw @ pglite.ts:557
execProtocol @ pglite.ts:573
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2420 pg> 
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???
pglite.ts:598  Yt {length: 110, message: 'extension "pg_trgm" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42710', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 116, message: 'relation "history" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 113, message: 'relation "history_snippet_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 111, message: 'relation "history_title_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 109, message: 'relation "history_url_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
pglite.ts:598  Yt {length: 110, message: 'relation "history_tags_idx" already exists, skipping', name: 'notice', severity: 'NOTICE', code: '42P07', …}
(anonymous) @ pglite.ts:598
parse @ parser.ts:122
execProtocol @ pglite.ts:577
await in execProtocol
execProtocol @ index.ts:635
(anonymous) @ index.ts:594
postgres.js:2420 wire message in cma buffer !
postgres.js:2420 # 537: end packet - sending rfq
postgres.js:2420 # 557: cma and sockfile ???