Skip to content

PgDsmLwLockTranche

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Names the lock tranche of PgDsmLwLock<T> values, which live in dynamic shared memory such as a parallel custom scan’s, as pgrx’s DsmLwLockTranche does.

public sealed class PgDsmLwLockTranche

Keep this descriptor in a static field and register it with Initialize(PgDsmLwLockTranche) during shared preload. PostgreSQL gives the tranche one ID for the whole server, and wait events report its locks by this name.

Inheritance: object

Creates an unregistered tranche with a cluster-wide name.

public PgDsmLwLockTranche(string name)

Parameters:

name — string

A nonempty, exact UTF-8 name without a zero byte.

Gets the tranche’s name.

public string Name { get; }

Value: string