sr_plan:在PostgreSQL中保存和恢复查询计划

上传者: 42099987 | 上传时间: 2022-06-02 14:45:18 | 文件大小: 30KB | 文件类型: ZIP
在PostgreSQL中保存和还原查询计划 基本原理 sr_plan看起来像Oracle Outline系统。 它可以用来锁定执行计划。 如果您不信任计划者或不能制定更好的计划,则很有必要。 编译安装 make USE_PGXS=1 make USE_PGXS=1 install 并修改您的postgres配置: shared_preload_libraries = 'sr_plan' 用法 在数据库中安装扩展: CREATE EXTENSION sr_plan; 如果要保存查询计划,则必须设置变量: set sr_plan . write_mode = true; 现在,所有后续

文件下载

资源详情

[{"title":"( 25 个子文件 30KB ) sr_plan:在PostgreSQL中保存和恢复查询计划","children":[{"title":"sr_plan-master","children":[{"title":"sql","children":[{"title":"joins.sql <span style='color:#111;'> 9.54KB </span>","children":null,"spread":false},{"title":"sr_plan.sql <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"explain.sql <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"sr_plan_schema.sql <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"init.sql <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"sr_plan.h <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"sr_plan.c <span style='color:#111;'> 26.61KB </span>","children":null,"spread":false},{"title":"Dockerfile.tmpl <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"run_tests.sh <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"sr_plan--1.0--1.1.sql <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"sr_plan--1.1--1.2.sql <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"conf.add <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"expected","children":[{"title":"joins_1.out <span style='color:#111;'> 33.55KB </span>","children":null,"spread":false},{"title":"sr_plan.out <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"sr_plan_schema.out <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"explain.out <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"joins.out <span style='color:#111;'> 33.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"sr_plan.control <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_sr_plan.py <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 246B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明