pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: kzheng1@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14455: pg_upgrade fails with error
Date: Wed, 07 Dec 2016 23:54:51 -0500
Message-ID: <15560.1481172891@sss.pgh.pa.us> (raw)
In-Reply-To: <20161208033202.31177.49803@wrigleys.postgresql.org>
References: <20161208033202.31177.49803@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

kzheng1@gmail.com writes:
> command: "/usr/local/Cellar/postgresql/9.5.4_1/bin/pg_ctl" -w -l
> "pg_upgrade_server.log" -D "/usr/local/var/postgres" -o "-p 50432 -b  -c
> listen_addresses='' -c unix_socket_permissions=0700 -c
> unix_socket_directories='/usr/local/Cellar/postgresql/9.6.1/bin'" start >>
> "pg_upgrade_server.log" 2>&1
> waiting for server to start....FATAL:  XX000: could not load library
> "/usr/local/lib/postgresql/pg_stat_statements.so":
> dlopen(/usr/local/lib/postgresql/pg_stat_statements.so, 10): Symbol not
> found: _GetNamedLWLockTranche
>           Referenced from: /usr/local/lib/postgresql/pg_stat_statements.so
>           Expected in: /usr/local/Cellar/postgresql/9.5.4_1/bin/postgres
>          in /usr/local/lib/postgresql/pg_stat_statements.so

You're trying to load a 9.6 version of pg_stat_statements.so into a 9.5
server.  That's not going to work.  (The error message isn't too
transparent, agreed, but we have no real control over that :-(.)

I'd venture that the problem is that you've tried to use /usr/local/lib/
rather than a version-specific library directory for this extension.
It'd be smart to rethink that.  In the short run you might be able to
work around it by turning off pg_stat_statements in the config for the
old server.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <15560.1481172891@sss.pgh.pa.us>
Permalink:  ../15560.1481172891@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15560.1481172891@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kzheng1@gmail.com
  Subject: Re: BUG #14455: pg_upgrade fails with error
  In-Reply-To: <15560.1481172891@sss.pgh.pa.us>
  References: <20161208033202.31177.49803@wrigleys.postgresql.org> <15560.1481172891@sss.pgh.pa.us>

* 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