pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14455: pg_upgrade fails with error
2+ messages / 2 participants
[nested] [flat]
* BUG #14455: pg_upgrade fails with error
@ 2016-12-08 03:32 kzheng1@gmail.com
0 siblings, 1 reply; 2+ messages in thread
From: kzheng1@gmail.com @ 2016-12-08 03:32 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14455
Logged by: k z
Email address: kzheng1@gmail.com
PostgreSQL version: 9.6.1
Operating system: mac OS siera
Description:
Trying to run the following command:
/usr/local/Cellar/postgresql/9.6.1/bin/pg_upgrade -d /usr/local/var/postgres
-D /usr/local/var/postgres9.6 -b /usr/local/Cellar/postgresql/9.5.4_1/bin -B
/usr/local/Cellar/postgresql/9.6.1/bin -v
Got the error in pg_upgrade_server.log
----------------------------------------------------------------
pg_upgrade run on Wed Dec 7 22:31:37 2016
-----------------------------------------------------------------
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
LOCATION: internal_load_library, dfmgr.c:235
stopped waiting
pg_ctl: could not start server
Examine the log output.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14455: pg_upgrade fails with error
@ 2016-12-08 04:54 Tom Lane <tgl@sss.pgh.pa.us>
parent: kzheng1@gmail.com
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-12-08 04:54 UTC (permalink / raw)
To: kzheng1@gmail.com; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-12-08 04:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-08 03:32 BUG #14455: pg_upgrade fails with error kzheng1@gmail.com
2016-12-08 04:54 ` Tom Lane <tgl@sss.pgh.pa.us>
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