From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rgonzalez@spensiones.cl
Subject: BUG #16090: Migración con pg_dump
Date: Wed, 30 Oct 2019 14:46:41 +0000
Message-ID: <16090-d6ea11d1c8db11a7@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16090
Logged by: Regina Gonzalez
Email address: rgonzalez@spensiones.cl
PostgreSQL version: 11.5
Operating system: Redhat 7
Description:
Alvaro Herrera:
El problema que te comenté en pgDay es el siguiente:
Al tratar de realizar la migración de postgres versión 8.4 a 11.5 utilizando
pg_dump, es decir:
pg_dump -h IP_Servidor8.4 -U postgres -d BD -n Squema | psql BD -U postgres
entrega el siguiente error:
pg_dump: [archiver (db)] query failed: ERROR: relation "pg_opfamily" does
not exist
pg_dump: [archiver (db)] query was: SELECT classid, objid, refclassid,
refobjid, deptype FROM pg_depend WHERE deptype != 'p' AND deptype != 'e'
UNION ALL
SELECT 'pg_opfamily'::regclass AS classid, amopfamily AS objid, refclassid,
refobjid, deptype FROM pg_depend d, pg_amop o WHERE deptype NOT IN ('p',
'e', 'i') AND classid = 'pg_amop'::regclass AND objid = o.oid AND NOT
(refclassid = 'pg_opfamily'::regclass AND amopfamily = refobjid)
UNION ALL
SELECT 'pg_opfamily'::regclass AS classid, amprocfamily AS objid,
refclassid, refobjid, deptype FROM pg_depend d, pg_amproc p WHERE deptype
NOT IN ('p', 'e', 'i') AND classid = 'pg_amproc'::regclass AND objid = p.oid
AND NOT (refclassid = 'pg_opfamily'::regclass AND amprocfamily = refobjid)
ORDER BY 1,2
El comando pg_dump lo habíamos utilizado sin problemas hasta
aproximadamente junio del 2019 y no entregaba el error anteriormente
indicado, pero ahora (octubre 2019) en la migración de versión 8.4 a 10 y
8.4 a 11.5 entrega el mismo mensaje de error.
Nuestros servidores tienen redhat. En el caso del postgres8.4 la versión de
redhat es Red Hat Enterprise Linux Server release 5.10 y la de los
servidores con postgres10 y postgres11 es Red Hat Enterprise Linux Server
release 7.7
Ojalá exista una solución porque tenemos que realizar migración de muchas
otras Bases de Datos.
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-bugs@postgresql.org
Cc: noreply@postgresql.org, rgonzalez@spensiones.cl
Subject: Re: BUG #16090: Migración con pg_dump
In-Reply-To: <16090-d6ea11d1c8db11a7@postgresql.org>
References: <16090-d6ea11d1c8db11a7@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