Skip to content

RunningPostgres

Defined in: packages/pgwasm/src/build/seam.ts:136

Phase 2 of a boot: Postgres is running.

readonly blob: BlobDevice | undefined

Defined in: packages/pgwasm/src/build/seam.ts:147

The /dev/blob device, present iff capabilities.blobDevice.

openSession(): Promise<WireSession>

Defined in: packages/pgwasm/src/build/seam.ts:138

A session, already past startup. Calls beyond capabilities.sessions reject.

Promise<WireSession>


persist(relaxed): Promise<void>

Defined in: packages/pgwasm/src/build/seam.ts:143

Persist storage after a statement. pgwasm serializes calls and owns the policy: relaxed is a background persist whose failure pgwasm latches; false is awaited by the statement.

boolean

Promise<void>


readEntries(): Promise<DataDirEntry[]>

Defined in: packages/pgwasm/src/build/seam.ts:145

Walk the data directory for a Store backup. pgwasm holds its query lock around the call.

Promise<DataDirEntry[]>


release(options?): Promise<void>

Defined in: packages/pgwasm/src/build/seam.ts:154

Release the storage and the host. Always the last call, after a failure too. afterFailedBoot is set when the boot failed after start() (a filesystem gets cleanupFailedInit instead of closeFs).

boolean

Promise<void>


shutdown(): Promise<void>

Defined in: packages/pgwasm/src/build/seam.ts:149

Stop Postgres cleanly. Never called after a failure.

Promise<void>