From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add min() and max() aggregates for pg_lsn
Date: Fri, 05 Jul 2019 03:21:31 +0000
Message-ID: <E1hjEmx-0002ao-59@gemulon.postgresql.org> (raw)
Add min() and max() aggregates for pg_lsn
This is useful for monitoring, when it comes for example to calculations
of WAL retention with replication slots and delays with a set of
standbys.
Bump catalog version.
Author: FabrÃzio de Royes Mello
Reviewed-by: Surafel Temesgen
Discussion: https://postgr.es/m/CAFcNs+oc8ZoHhowA4rR1GGCgG8QNgK_TOwPRVYQo5rYy8_PXzA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/313f87a17155a6dbd27a3ce687cf59bd171fe75e
Modified Files
--------------
doc/src/sgml/func.sgml | 4 ++--
src/backend/utils/adt/pg_lsn.c | 18 ++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_aggregate.dat | 6 ++++++
src/include/catalog/pg_proc.dat | 12 ++++++++++++
src/test/regress/expected/pg_lsn.out | 7 +++++++
src/test/regress/sql/pg_lsn.sql | 4 ++++
7 files changed, 50 insertions(+), 3 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add min() and max() aggregates for pg_lsn
In-Reply-To: <E1hjEmx-0002ao-59@gemulon.postgresql.org>
References: <E1hjEmx-0002ao-59@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox