pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: evsi@amazon.com
Subject: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1
Date: Thu, 08 May 2025 19:55:51 +0000
Message-ID: <18920-b350b1c0a30af006@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18920
Logged by:          Evan Si
Email address:      evsi@amazon.com
PostgreSQL version: 18beta1
Operating system:   Amazon Linux 2
Description:        

Hi,
The 18beta1 documentation for the LOAD command has remained the same since
previous major versions.
https://www.postgresql.org/docs/18/sql-load.html
In the postgres installation, I can copy something e.g. auto_explain into a
plugins subdirectory of `pg_config --pkglibdir`
```
cp $(pg_config --pkglibdir)/auto_explain.so $(pg_config
--pkglibdir)/plugins/auto_explain.so
```
then from the server start:
```
psql (18beta1)
Type "help" for help.
postgres=# LOAD '$libdir/plugins/auto_explain.so';
ERROR:  could not access file "plugins/auto_explain.so": No such file or
directory
postgres=# \q
```
This behavior differs from documentation and previous majors. It seems to me
that $libdir is getting stripped out from this commit:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=4f7f7b0
--
Evan



view thread (12+ messages)  latest in thread

Message-ID: <18920-b350b1c0a30af006@postgresql.org>
Permalink:  ../18920-b350b1c0a30af006@postgresql.org/
Also on:    postgresql.org/message-id/18920-b350b1c0a30af006@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, evsi@amazon.com
  Subject: Re: BUG #18920: LOAD '$libdir/plugins' no longer works in 18beta1
  In-Reply-To: <18920-b350b1c0a30af006@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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