Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMcI9-003Npz-P2 for pgsql-general@arkaria.postgresql.org; Wed, 26 Jun 2024 23:43:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sMcI8-0074y1-16 for pgsql-general@arkaria.postgresql.org; Wed, 26 Jun 2024 23:43:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMcI7-0074xt-MY for pgsql-general@lists.postgresql.org; Wed, 26 Jun 2024 23:43:08 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMcI5-003Iic-GO for pgsql-general@lists.postgresql.org; Wed, 26 Jun 2024 23:43:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 45QNh4Ct1639900; Wed, 26 Jun 2024 19:43:04 -0400 From: Tom Lane To: bhavani dba cc: pgsql-general@lists.postgresql.org Subject: Re: Issue with installing postgres extension In-reply-to: References: Comments: In-reply-to bhavani dba message dated "Wed, 26 Jun 2024 19:22:57 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1639898.1719445384.1@sss.pgh.pa.us> Date: Wed, 26 Jun 2024 19:43:04 -0400 Message-ID: <1639899.1719445384@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk bhavani dba writes: > postgres=# CREATE EXTENSION pg_stat_statements; > ERROR: could not load library > "/home/postgres/bin/pgsql/15/lib/pg_stat_statements.so": > /home/postgres/bin/pgsql/15/lib/pg_stat_statements.so: undefined symbol: > InitMaterializedSRF This certainly looks like you are trying to load a v15 extension into a pre-v15 server (since the InitMaterializedSRF function didn't exist in prior versions). I'm going to go out on a limb and guess that you just installed v15 and forgot to restart the server, so that what's running is still v14 or before. If so, you probably also forgot the pg_upgrade step --- you can't simply start a new major version in an old one's data directory. regards, tom lane