Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i02vq-0003qm-6L for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 12:08:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i02vp-00036D-2t for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 12:08:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i02vo-000366-Li for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 12:08:08 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i02vl-0003Ae-Fr for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 12:08:08 +0000 Received: by mail-pg1-x544.google.com with SMTP id k3so3132253pgb.10 for ; Tue, 20 Aug 2019 05:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Vn0XQt/4t/E8jN5MQ7/mJAdXswpfY3Qcd8TKDOABSr4=; b=P3wR1OxvfK6txTPWqzorXb9C46D2U66PqXd47ZAW1Dc+oGG8X2Q74RDKCgGwz/dynV syxmMPzk0k376IEAr+ylxyA/jH7jKXsEgOW4k0xPe35Z9VZC5UR0UcHjlQTLDr/XMd3n 845mWCk/cIxD6M5f4+A6pttMVk/Vod2otn9ZSbUcjj6brZ20mlYBHGR7NTdGxNNazvhJ 57/0qG6hHWnwOQep1qKG4g2EdSnKj0PC9TQUlJf08O1eZJC0ISTrITS4WgQMSEvb55dD 63Cry3C1bC3MQTM5ULcJ9o8YZy3dVgCrLPmyG8UWA/XxZvkp7SRI6maNLc6AySnDBthJ 0Kfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Vn0XQt/4t/E8jN5MQ7/mJAdXswpfY3Qcd8TKDOABSr4=; b=KhColptlljQp23uiYWmmio78jlfFaAAOKNEnvUEn3MA9UKy3pGkg9KIRJzWCiGIvM/ gR2rntwAU6X5sf3XpgsjGWhdBfTOpCEwzTrcK6RYD6qbwqFaNvwgEAxvq2RtJ2e+/eHH mZI6LbrlSMDwnYcEBgmjuj8bf/q30nYP068a/0EpvFc58RsgPl7uCqvPD/4dlaGgNTEQ 5hUkADzh0dH11qu5mTPSp7DnxsYW67QhC0nfUJr64P9JU1foOH6rnxvos0V11L6JmHX5 I+kqkdTbcusKEMM7E/sGK4qfYC3/fGbyCLWwjW5/+4O9rnMAlFrq8oHc1nsteonIiRjB GXew== X-Gm-Message-State: APjAAAX0DT6Jc2mm3vuHuUfiRBthdmSM8I9K3fxo+5jsJu9AHXVAlwR/ ObomU5Na1Mc0xnWYI+ngCfq6SYMT+BpOtd5AohLFReEaNa89BE4u+6KhBzVQZAQTJbOkwETaMnp RwJcek8cdI2+n3qQa+TAVxEzMzzZbu28Qfk028onhJHk6KWu0YJZjP+4pMp+Pzkqp6ZD5FsVfBu qX2B+QiDZFTTCrt799MIwr X-Google-Smtp-Source: APXvYqypu0D0qFt19w3gBjVT9g1rg14gGnRMxSJo1g1l3MrnoZKNRF3NnxzURPfVowFwT6i6j7MfqQ== X-Received: by 2002:a62:5501:: with SMTP id j1mr11061962pfb.166.1566302882151; Tue, 20 Aug 2019 05:08:02 -0700 (PDT) Received: from osaka.octopusnet (p8584121-ipngn39001marunouchi.tokyo.ocn.ne.jp. [180.39.36.121]) by smtp.gmail.com with ESMTPSA id 4sm11928504pfe.76.2019.08.20.05.07.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:08:01 -0700 (PDT) Subject: Re: pg_dump problems: [archiver (db)] query failed: ERROR: relation "pg_opfamily" does not exist To: Erwin Moller , pgsql-general@lists.postgresql.org References: From: Ian Barwick Message-ID: <63b4389d-41fe-de11-0427-2ae14acdffaa@2ndquadrant.com> Date: Tue, 20 Aug 2019 21:07:53 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/20/19 7:12 PM, Erwin Moller wrote: > Hi, > > While trying to move an old 8.1 Postgres install to a new server with postgres 10.10, I get an error, listed hereunder: > I am trying to get a mydump_x_x_x.sql file to use to reinstall on the target machine. > > From my new machine I connect to my old machine like this: > erwin@ubuntu:~$  pg_dump -f "/home/erwin/mydump_$(date +%d_%m_%Y).sql" -C -h somehost.com -p 5433 -U myvalidusername -d myremotedb > Password: > 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 > > And no archive is created. > > Does any of you kind people have advice? I am sure this worked on postgres9. It looks like this was broken just before 10.10 was released, and has since been fixed; see: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=6844adba54f7d96f30f834efc6d9aa1e52e5672d Your options are: - find a 10.9 or earlier package and use the pg_dump from that - build pg_dump yourself - wait for 10.11 to come out (though I imagine that won't be for a month or two) Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services