Re: Issue with installing postgres extension - Mailing list pgsql-general

From Tom Lane
Subject Re: Issue with installing postgres extension
Date
Msg-id 1639899.1719445384@sss.pgh.pa.us
Whole thread Raw
In response to Issue with installing postgres extension  (bhavani dba <dbabhavani@gmail.com>)
Responses Re: Issue with installing postgres extension
List pgsql-general
bhavani dba <dbabhavani@gmail.com> 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



pgsql-general by date:

Previous
From: bhavani dba
Date:
Subject: Issue with installing postgres extension
Next
From: bhavani dba
Date:
Subject: Re: Issue with installing postgres extension