From: Tom Lane <tgl@sss.pgh.pa.us>
To: yakov.garbuz@asmr.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17585: Wrong path to the extension control file
Date: Fri, 12 Aug 2022 18:57:29 -0400
Message-ID: <204589.1660345049@sss.pgh.pa.us> (raw)
In-Reply-To: <17585-f1cb9854d087c002@postgresql.org>
References: <17585-f1cb9854d087c002@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> When I login to a server
> sudo -u postgres -h "nnn.nnn.nnn.nnn" -p nnnn -d postgres psql
> and execute command
> CREATE EXTENSION IF NOT EXISTS postgres_fdw;
> it runs OK, extension created and file postgres_fdw.control found in the
> folder
> "/usr/local/Cellar/postgresql@12/12.11/share/postgresql@12/extension/"
> But when I login to the same server but to the different database and as a
> different user
> sudo -u myuser -h "nnn.nnn.nnn.nnn" -p nnnn -d mydb psql
> and try execute the same command
> CREATE EXTENSION IF NOT EXISTS postgres_fdw;
> I'm getting ERROR: could not open extension control file
> "/usr/pgsql-12/share/extension/postgres_fdw.control": No such file or
> directory
I find it *extremely* implausible that those are actually the same
server, because the path to the extension directory isn't configurable;
it's pretty much wired in at build time. So I think you've managed to
put two separate PG installations on that machine. One of them looks to
be following HomeBrew directory conventions, while /usr/pgsql-12/ is sort
of like what Debian does and not at all like any macOS packager I know.
Are you really sure you're connecting to the same machine in both
examples? "SELECT version();" might be informative, also
"SHOW config_file;".
regards, tom lane
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: tgl@sss.pgh.pa.us, yakov.garbuz@asmr.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17585: Wrong path to the extension control file
In-Reply-To: <204589.1660345049@sss.pgh.pa.us>
* 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