Re: Issue with installing postgres extension

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bhavani dba <dbabhavani(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Issue with installing postgres extension
Date: 2024-06-26 23:43:04
Message-ID: 1639899.1719445384@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

bhavani dba <dbabhavani(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message bhavani dba 2024-06-27 01:08:23 Re: Issue with installing postgres extension
Previous Message bhavani dba 2024-06-26 23:22:57 Issue with installing postgres extension