Обсуждение: Testing an extension without installing it

Поиск
Список
Период
Сортировка

Testing an extension without installing it

От
Florian Weimer
Дата:
Is it possible to test an C extension module (.so file) without
installing a SHAREDIR/extension/extension_name.control file?

My test suite already runs initdb and the database as a non-postgres
user, but I don't see a way to override the extension control file location.

--
Florian Weimer / Red Hat Product Security Team


Re: Testing an extension without installing it

От
Tom Lane
Дата:
Florian Weimer <fweimer@redhat.com> writes:
> Is it possible to test an C extension module (.so file) without
> installing a SHAREDIR/extension/extension_name.control file?

Well, you could just ignore the extension mechanism: do some
manual CREATE FUNCTION commands and test the functionality
through those.

            regards, tom lane