<!--
SPDX-FileCopyrightText: © 2026 BaseLabs Holdings LLC

SPDX-License-Identifier: MIT
-->

# ADR-0010: PostgreSQL server support

This record explains the server support and decoder policy for developers
maintaining or upgrading a replication pipeline.

**Status:** Accepted 2026-11-26

## Context

PostgreSQL 14 reached end of life on November 12, 2026. PostgreSQL 19.0 shipped
on November 19. The [PGDG versioning policy](https://www.postgresql.org/support/versioning/)
lists the supported server majors. Replicant 1.x also serves
older servers and output plugins under [ADR-0009](0009-pglogical-wal2json-decoders.md).

## Decision

Replicant supports the PostgreSQL majors supported by the PostgreSQL Global
Development Group (PGDG), with one real CI lane per supported major. Support for
a major ends on its published PGDG end-of-life date and is announced in the
compatibility documentation and changelog.

A Replicant patch or minor release preserves the server floor and accepts
configurations that already work.
Removing a working configuration requires a Replicant major release. Until then,
retired servers may remain in compatibility CI to guard the existing contract.

Retain `decoder: :pglogical` on supported majors. pglogical can evaluate filters
that call user-defined functions and requires every applicable set predicate to
pass. Native publications restrict the expressions and combine publication
predicates with OR. Replicant's pglogical snapshots preserve the same
intersection as its stream.
[PostgreSQL row filters](https://www.postgresql.org/docs/19/logical-replication-row-filter.html)
· [pglogical filter parser](https://github.com/2ndQuadrant/pglogical/blob/REL2_4_8/pglogical_functions.c#L1266-L1387)
· [pglogical filter evaluation](https://github.com/2ndQuadrant/pglogical/blob/REL2_4_8/pglogical_output_plugin.c#L619-L672)

See [compatibility](../../documentation/topics/about/compatibility.md) for the
current range and [Contributing](https://github.com/baselabs/replicant/blob/main/CONTRIBUTING.md#ci)
for how qualification covers it.

## Wal2json migration

Use the [upgrade guide](../../documentation/how-to/upgrade.md) to change
decoders with a verified checkpoint handoff.
