LOAD 是一个实用命令,用于将共享库文件加载到当前会话中。
LOAD 命令一直存在于 PostgreSQL 中。
示例
使用 LOAD 将 auto_explain 模块导入到当前会话
postgres=# LOAD 'auto_explain'; LOAD postgres=# SET auto_explain.log_min_duration = 0; SET postgres=# SELECT count(*) FROM pgbench_branches b JOIN pgbench_accounts a ON b.bid = a.bid; count -------- 100000 (1 row)
参考资料
- PostgreSQL 文档: LOAD
