Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEqk6-0004Oe-Dc for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Dec 2016 04:55:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEqk5-0002Hd-Ka for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Dec 2016 04:55:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEqjQ-0001Uf-Sf for pgsql-bugs@postgresql.org; Thu, 08 Dec 2016 04:54:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEqjO-0001lW-35 for pgsql-bugs@postgresql.org; Thu, 08 Dec 2016 04:54:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uB84spAY015561; Wed, 7 Dec 2016 23:54:51 -0500 From: Tom Lane To: kzheng1@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14455: pg_upgrade fails with error In-reply-to: <20161208033202.31177.49803@wrigleys.postgresql.org> References: <20161208033202.31177.49803@wrigleys.postgresql.org> Comments: In-reply-to kzheng1@gmail.com message dated "Thu, 08 Dec 2016 03:32:02 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15559.1481172891.1@sss.pgh.pa.us> Date: Wed, 07 Dec 2016 23:54:51 -0500 Message-ID: <15560.1481172891@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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