Re: RFC: Additional Directory for Extensions

Поиск
Список
Период
Сортировка
Искать
От
Christoph Berg
Тема
Re: RFC: Additional Directory for Extensions
Дата
Msg-id
Zg2L8itKwTWF3Xop@msg.df7cb.de
Ответ на
Список
Дерево обсуждения
[MASSMAIL]RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: RFC: Additional Directory for Extensions Daniel Gustafsson <daniel@yesql.se>
Re: RFC: Additional Directory for Extensions Robert Haas <robertmhaas@gmail.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Robert Haas <robertmhaas@gmail.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: RFC: Additional Directory for Extensions Robert Haas <robertmhaas@gmail.com>
Re: RFC: Additional Directory for Extensions David E. Wheeler <david@justatheory.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Re: RFC: Additional Directory for Extensions Craig Ringer <craig.ringer@enterprisedb.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Craig Ringer <craig.ringer@enterprisedb.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Craig Ringer <craig.ringer@enterprisedb.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Ebru Aydin Gol <ebruaydin@gmail.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Ebru Aydin Gol <ebruaydin@gmail.com>
Re: RFC: Additional Directory for Extensions Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Re: RFC: Additional Directory for Extensions Craig Ringer <craig.ringer@enterprisedb.com>
Re: RFC: Additional Directory for Extensions Craig Ringer <craig.ringer@enterprisedb.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions Nathan Bossart <nathandbossart@gmail.com>
Re: RFC: Additional Directory for Extensions walther@technowledgy.de
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Christoph Berg <myon@debian.org>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
Re: RFC: Additional Directory for Extensions Nathan Bossart <nathandbossart@gmail.com>
Re: RFC: Additional Directory for Extensions Jelte Fennema-Nio <postgres@jeltef.nl>
Re: RFC: Additional Directory for Extensions Christoph Berg <myon@debian.org>
Re: RFC: Additional Directory for Extensions Christoph Berg <myon@debian.org>
Re: RFC: Additional Directory for Extensions "David E. Wheeler" <david@justatheory.com>
> Fwiw, I wrote this patch to solve the problem of testing extensions at
> build-time where the build process does not have write access to
> PGSHAREDIR. It solves that problem quite well, almost all PG
> extensions have build-time test coverage now (where there was
> basically 0 before).

Also, it's called extension "destdir" because it behaves like DESTDIR
in Makefiles: It prepends the given path to the path that PG is trying
to open when set. So it doesn't allow arbitrary new locations as of
now, just /home/build/foo-1/debian/foo/usr/share/postgresql/17/extension
in addition to /usr/share/postgresql/17/extension. (That is what the
Debian package build process needs, so that restriction/design choice
made sense.)

> Security is not a concern at this point as everything is running as
> the same user, and the test cluster will be wiped right after the
> test. I figured marking the setting as "super user" only was enough
> security at that point, but I would recommend another audit before
> using it together with "trusted" extensions and other things in
> production.

That's also included in the current GUC description:

   This directory is prepended to paths when loading extensions
   (control and SQL files), and to the '$libdir' directive when
   loading modules that back functions. The location is made
   configurable to allow build-time testing of extensions that do not
   have been installed to their proper location yet.

Perhaps I should have included a more verbose "NOT FOR PRODUCTION"
there.

As for compatibility, the patch has been part of the PG 9.5..17 now
for several years, and I'm very happy with extra test coverage it
provides, especially on the Debian architectures that don't have
"autopkgtest" runners yet.

Christoph


В списке pgsql-hackers по дате отправления
От: Melanie Plageman
Дата:
От: Melanie Plageman
Дата:
FAQ