For this reason, non-PostgreSQL libraries cannot be loaded in this way. You might be able to use operating-system facilities such as LD_PRELOAD for that. In general, refer to the documentation of a specific module for the recommended way to load that module.