Re: ubuntu pg_wrapper selects the wrong version for pg_restore

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: robert <robert(at)redcor(dot)ch>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: ubuntu pg_wrapper selects the wrong version for pg_restore
Date: 2018-02-06 07:39:16
Message-ID: CAGDYbUMo2+itkYbAd5Qb82UrVQWNao-6SSax-QPstjfwamjd8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,
Please find response inline...

On Tue, Feb 6, 2018 at 11:36 AM, robert <robert(at)redcor(dot)ch> wrote:

> hi there,
>
> I have postgresql 10.1 installed
>
> when I use pg_restore the wrong version is selected:
>
> robert(at)lappi:~/odoo_instances$ pg_restore -V
> pg_restore (PostgreSQL) 9.5.10
>
>
> when I execute
>
> robert(at)lappi:~/odoo_instances$ pg_restore --cluster 10/main -V
> pg_restore (PostgreSQL) 10.1
>
> the correct one is used.
>
>
> how can I make pg_wrapper use this one as default?
>

I think you need to set your environment variable with the new version in
.bash_profile, this will also help pg_wrapper to pick the correct version
you are looking for.​

--
[image: http://www.shreeyansh.com] <http://www.shreeyansh.com>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Poty 2018-02-06 08:42:45 advice about logging
Previous Message robert 2018-02-06 06:06:55 ubuntu pg_wrapper selects the wrong version for pg_restore