pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erwin Moller <erwin@darwine.nl>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump problems: [archiver (db)] query failed: ERROR: relation "pg_opfamily" does not exist
Date: Wed, 11 Sep 2019 14:27:04 +0200
Message-ID: <3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl> (raw)
In-Reply-To: <44b31c0c-f287-a844-7b85-4c5559699ac7@aklaver.com>
References: <dd470a99-372b-2e0a-c1fe-181f1c373d6d@xs4all.nl>
	<63b4389d-41fe-de11-0427-2ae14acdffaa@2ndquadrant.com>
	<ee3793a2-9504-5175-122f-295e29d8efec@darwine.nl>
	<bdea8b76-3f58-3185-65a4-df6a0fd93464@aklaver.com>
	<384ce3f0-79d7-b5d2-494d-4374eaddb7db@darwine.nl>
	<52d04185-f4ac-fe44-2e97-4646be3a0fae@aklaver.com>
	<44b31c0c-f287-a844-7b85-4c5559699ac7@aklaver.com>

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.pgdg1... 
>>
>>
>> 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 
<https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-10/postgresql-client-10_10.9-1.pgdg1...;

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.pgdg1...

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

view thread (9+ messages)

Message-ID: <3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl>
Permalink:  ../3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl/
Also on:    postgresql.org/message-id/3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl

 · 

reply

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-general@postgresql.org
  Cc: erwin@darwine.nl
  Subject: Re: pg_dump problems: [archiver (db)] query failed: ERROR: relation "pg_opfamily" does not exist
  In-Reply-To: <3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl>
  References: <dd470a99-372b-2e0a-c1fe-181f1c373d6d@xs4all.nl> <63b4389d-41fe-de11-0427-2ae14acdffaa@2ndquadrant.com> <ee3793a2-9504-5175-122f-295e29d8efec@darwine.nl> <bdea8b76-3f58-3185-65a4-df6a0fd93464@aklaver.com> <384ce3f0-79d7-b5d2-494d-4374eaddb7db@darwine.nl> <52d04185-f4ac-fe44-2e97-4646be3a0fae@aklaver.com> <44b31c0c-f287-a844-7b85-4c5559699ac7@aklaver.com> <3aa2c1ea-1fa6-46d4-0bf2-3183210882c1@darwine.nl>

* 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