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

From Tom Lane
Subject pgsql: Un-break pg_dump for pre-8.3 source servers.
Date
Msg-id E1hxdsX-0000yG-Ly@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63ae888a96433cf2abcdcf6be77d74f0157290a6

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


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Use PageIndexTupleOverwrite() within nbtree.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Remove obsolete nbtree README commentary.