Skip to main content

Module postgres_lookup

Module postgres_lookup 

Source
Expand description

PostgreSQL on-demand lookup source (pooled, WHERE pk = ANY($1)). PostgreSQL on-demand lookup source for cache-miss fallback.

A deadpool-pooled client issues one parameterized WHERE pk = ANY($1) per fetch, so all missed keys of a probe fold into one index-served round trip. KeyAligner handles key decode and result realignment.

TLS is server-auth via rustls: sslmode = disable (default) leaves the connection plaintext; require / verify-ca / verify-full all enable TLS with full server-certificate verification (chain + hostname) against sslrootcert (CA PEM) or, absent that, the Mozilla webpki roots. There is deliberately no insecure skip-verify, and the weaker libpq variants are not emulated (the three modes are aliases for “verified TLS”). v1 limits: single-column key, server-auth only (no mTLS client certs).

Structs§

PostgresLookupSource
PostgreSQL lookup source for on-demand/partial cache mode.
PostgresLookupSourceConfig
Configuration for PostgresLookupSource.