Does PostgreSQL keep its pl* interpreters loaded persistently?

后端 未结 1 629
無奈伤痛
無奈伤痛 2021-01-14 07:40

If I wrote something in plperlu, when would that module be reloaded? Every time the function ran? The first time it ran? Does the Perl DLL get unloaded if it hasn\'t been

相关标签:
1条回答
  • 2021-01-14 08:23

    I think the module will be loaded once for each server process (i.e. new session / connection) on the first use of that language within that session.

    You can preload them to avoid any delay on first use, per the manual for shared_preload_libraries and local_preload_libraries.

    Old PostgreSQL versions just had a single preload_libraries setting; see the manual for your version if you're on something very old.

    0 讨论(0)
提交回复
热议问题