← All compilation units

Flyology.Postgres

Description

Common configuration types and limits shared by the PostgreSQL client, protocol server, authentication, and transport packages.

Authentication_Method

type Authentication_Method is
  (Trust, Cleartext_Password, SCRAM_SHA_256);

Authentication policy used by a server instance.

Enumeration literals
Trust

Accept a startup user without requesting a credential.

Cleartext_Password

Request and verify a plaintext password.

SCRAM_SHA_256

Authenticate with the SCRAM-SHA-256 SASL mechanism.

Maximum_Message_Size

Maximum_Message_Size : constant := 16 * 1_024 * 1_024;

Largest complete PostgreSQL wire message accepted by the library, including its type byte and encoded length.

TLS_Policy

type TLS_Policy is (TLS_Disabled, TLS_Allowed, TLS_Required);

Server-side policy for PostgreSQL SSLRequest negotiation.

Enumeration literals
TLS_Disabled

Do not offer TLS on the listener.

TLS_Allowed

Accept either plaintext or TLS startup.

TLS_Required

Reject plaintext startup and require TLS.