Re: [GENERAL] pg_restore to a port where nobody is listening? - Mailing list pgsql-general

From Francisco Olarte
Subject Re: [GENERAL] pg_restore to a port where nobody is listening?
Date
Msg-id CA+bJJby10zJV90QDqMs4LHOTKj_1gw7ETb7_TKhPQHydvLu_bQ@mail.gmail.com
Whole thread Raw
In response to [GENERAL] pg_restore to a port where nobody is listening?  (Daniel Westermann <daniel.westermann@dbi-services.com>)
List pgsql-general
On Wed, Dec 21, 2016 at 6:22 PM, Daniel Westermann
<daniel.westermann@dbi-services.com> wrote:
> I have a PostgreSQL 9.5.4 and a PostgreSQL 9.6.1 instance installed on the
> same host.
....
.....
> What do I miss? I can give any port to pg_restore and it just seems to be
> fine.

mmmm, are you by chance using debian/ubuntu/any derivative? Maybe
pg_restore is not directly executed. In Ubuntu I have this:

$ type -path pg_restore
/usr/bin/pg_restore
$ file /usr/bin/pg_restore
/usr/bin/pg_restore: symbolic link to ../share/postgresql-common/pg_wrapper
$ file /usr/share/postgresql-common/pg_wrapper
/usr/share/postgresql-common/pg_wrapper: Perl script text executable

And that pg_wrapper thingie has the habit of completely fscking my
connection options / service files ( even though I do not have a
server installed, I only install teh client programs to connect to the
remote servers ).

You could check with type/file wether you have something similar.

Francisco Olarte.


pgsql-general by date:

Previous
From: Daniel Westermann
Date:
Subject: Re: [GENERAL] pg_restore to a port where nobody is listening?
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] pg_restore to a port where nobody is listening?