Skip to content

PgGucPrefixAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Declares a configuration prefix to check after native settings register and before managed initialization.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class PgGucPrefixAttribute : Attribute

PostgreSQL 15 and later remove matching unknown placeholders and reserve the literal first component against new placeholders. PostgreSQL 13 and 14 only warn about existing matching placeholders. Matching is case sensitive. A dotted prefix can match existing placeholders but does not reserve future first components. Empty prefixes are retained with PostgreSQL’s native behavior.

Inheritance: object, Attribute

Declares a configuration prefix to check after native settings register and before managed initialization.

public PgGucPrefixAttribute(string prefix)

Parameters:

prefix — string

The exact prefix text, without embedded zero characters.

PostgreSQL 15 and later remove matching unknown placeholders and reserve the literal first component against new placeholders. PostgreSQL 13 and 14 only warn about existing matching placeholders. Matching is case sensitive. A dotted prefix can match existing placeholders but does not reserve future first components. Empty prefixes are retained with PostgreSQL’s native behavior.

Gets the literal configuration prefix passed to PostgreSQL.

public string Prefix { get; }

Value: string