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 1i81iN-0008W6-8G for pgsql-general@arkaria.postgresql.org; Wed, 11 Sep 2019 12:27:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i81iK-0007Pq-Hd for pgsql-general@arkaria.postgresql.org; Wed, 11 Sep 2019 12:27:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i81iJ-0007C4-VL for pgsql-general@lists.postgresql.org; Wed, 11 Sep 2019 12:27:12 +0000 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i81iG-0000GY-JD for pgsql-general@lists.postgresql.org; Wed, 11 Sep 2019 12:27:10 +0000 Received: from [192.168.0.46] ([31.149.253.9]) by smtp-cloud8.xs4all.net with ESMTPA id 81iCitPSuMK4h81iDie44b; Wed, 11 Sep 2019 14:27:05 +0200 Subject: Re: pg_dump problems: [archiver (db)] query failed: ERROR: relation "pg_opfamily" does not exist To: pgsql-general@lists.postgresql.org References: <63b4389d-41fe-de11-0427-2ae14acdffaa@2ndquadrant.com> <384ce3f0-79d7-b5d2-494d-4374eaddb7db@darwine.nl> <52d04185-f4ac-fe44-2e97-4646be3a0fae@aklaver.com> <44b31c0c-f287-a844-7b85-4c5559699ac7@aklaver.com> From: Erwin Moller Message-ID: <3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl> Date: Wed, 11 Sep 2019 14:27:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <44b31c0c-f287-a844-7b85-4c5559699ac7@aklaver.com> Content-Type: multipart/alternative; boundary="------------CB4A87D94F4DC994B781958C" Content-Language: en-US X-CMAE-Envelope: MS4wfMYDw+co7/QyBH/I7VEk3h/XDV4OCjvUe7yyp0q1hhP3vHujWGk5Kfzi7Iry3AyvWCVABKZwPU8Z2fYlurIWcoH7f7PH6mFFKDD8H0lPXHEyKn451jo6 qCBdbXGsrGbkTok6y4Zb/yAYawtYYGsvsfg4OYzFbKIIUZ2x+GxdWMpgpJwlwrYL7FOHPXaYZwf0YA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------CB4A87D94F4DC994B781958C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 8/20/2019 5:11 PM, Adrian Klaver wrote: > On 8/20/19 8:02 AM, Adrian Klaver wrote: >> On 8/20/19 7:37 AM, Erwin Moller wrote: >>> > >>> That is a bummer. >>> Since I have no idea how to safely install an older version of >>> pg_dump alongside my current 10.10 install, I will wait for the patch. >> >> A quick test showed that: >> >> 1) Go here: >> https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-11/ >> >> 2) Grab >> https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-11/postgresql-client-11_11.4-1.pgdg18.10%2b1_amd64.deb >> >> >> 3) Using Ark extract pg_dump from data.tar.xz at path >> /usr/lib/postgresql/11/bin > > Just to be clear I did the above in my home directory so as not to > overwrite the installed programs. > > Also probably not a bad idea to rename the below to something like > pg_dump_11_4 to keep things straight. > >> >> >> ./pg_dump -V >> pg_dump (PostgreSQL) 11.4 (Ubuntu 11.4-1.pgdg18.10+1) > > >> >> >> I do not have a 8.1 instance to try against, so I could not test that >> part Thanks Adrian, It took some time for me to get back to this, but thanks to your suggestions I got it working. Since I am not too familiar with the inner workings of Ubuntu, some of your suggestions took me a while longer to parse, but with succes. ;-) In case some other unskilled soul like me happens on this problem, here is what I did in babysteps: I didn't want to grap the version you suggested (11.4), since I run 10.10, so I wanted to be safe and use 10.9 client tools: Found it here: https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-10/ postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb I created a new directory in my home: mkdir pg_dump_10.9 cd pg_dump_10.9 wget https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-10/postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb now how to extract my pg_dump? After a short Google I did the following: dpkg-deb -R ./postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb tmp then walked to the right (new) directory: cd tmp/usr/lib/postgresql/10/bin There it was.: pg_dump from 10.9. Yes! I moved it to my home-dir, and renamed it as you suggested (to avoid confusion). Work right from there. :-) I was expecting all kind of dependencies I had to solve, but it worked right out of the box. Thanks Adrian. Regards, Erwin Moller --------------CB4A87D94F4DC994B781958C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 8/20/2019 5:11 PM, Adrian Klaver wrote:
On 8/20/19 8:02 AM, Adrian Klaver wrote:
On 8/20/19 7:37 AM, Erwin Moller wrote:


That is a bummer.
Since I have no idea how to safely install an older version of pg_dump alongside my current 10.10 install, I will wait for the patch.

A quick test showed that:

1) Go here:
https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-11/

2) Grab
https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-11/postgresql-client-11_11.4-1.pgdg18.10%2b1_amd64.deb

3) Using Ark extract pg_dump from data.tar.xz at path
/usr/lib/postgresql/11/bin

Just to be clear I did the above in my home directory so as not to overwrite the installed programs.

Also probably not a bad idea to rename the below to something like pg_dump_11_4 to keep things straight.



./pg_dump -V
pg_dump (PostgreSQL) 11.4 (Ubuntu 11.4-1.pgdg18.10+1)




I do not have a 8.1 instance to try against, so I could not test that part

Thanks Adrian,

It took some time for me to get back to this, but thanks to your suggestions I got it working.
Since I am not too familiar with the inner workings of Ubuntu, some of your suggestions took me a while longer to parse, but with succes. ;-)

In case some other unskilled soul like me happens on this problem, here is what I did in babysteps:

I didn't want to grap the version you suggested (11.4), since I run 10.10, so I wanted to be safe and use 10.9 client tools:

Found it here:
https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-10/
postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb

I created a new directory in my home:
mkdir pg_dump_10.9
cd pg_dump_10.9
wget https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-10/postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb

now how to extract my pg_dump? After a short Google I did the following:
dpkg-deb -R ./postgresql-client-10_10.9-1.pgdg18.10+1_amd64.deb tmp

then walked to the right (new) directory:
cd tmp/usr/lib/postgresql/10/bin

There it was.: pg_dump from 10.9. Yes!
I moved it to my home-dir, and renamed it as you suggested (to avoid confusion).

Work right from there. :-)

I was expecting all kind of dependencies I had to solve, but it worked right out of the box.

Thanks Adrian.

Regards,
Erwin Moller
--------------CB4A87D94F4DC994B781958C--