PgClient interface

Extends pg.Client with additional properties

Signature:

export interface PgClient extends Client 

Extends: Client

Properties

Property

Modifiers

Type

Description

appName

string

Value PostgreSQL reports as application_name for this connection.

Load-bearing rather than cosmetic: the lock's liveness check looks the holder up in pg_stat_activity BY this name to decide whether it is still alive, so two processes sharing an appName cannot be told apart, and a blank one defeats the check.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.