pgsql: Un-break pg_dump for pre-8.3 source servers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Un-break pg_dump for pre-8.3 source servers.
Date: 2019-08-13 20:58:49
Message-ID: E1hxdsX-0000y7-LN@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Un-break pg_dump for pre-8.3 source servers.

Commit 07b39083c inserted an unconditional reference to pg_opfamily,
which of course fails on servers predating that catalog. Fortunately,
the case it's trying to solve can't occur on such old servers (AFAIK).
Hence, just skip the additional code when the source predates 8.3.

Per bug #15955 from sly. Back-patch to all supported branches,
like the previous patch.

Discussion: https://postgr.es/m/15955-1daa2e676e903d87@postgresql.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6844adba54f7d96f30f834efc6d9aa1e52e5672d

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2019-08-14 00:17:29 pgsql: Remove obsolete nbtree README commentary.
Previous Message Peter Geoghegan 2019-08-13 18:57:00 pgsql: Use PageIndexTupleOverwrite() within nbtree.