PostgreSQL DBA(171) - PG 13(pg_stat_statements to track planning statistics)
在PG 13的pg_stat_statements中新增了计划相关的时间. PG 12 [local:/data/run/pg12]:5120 pg12@testdb=# select * from pg_stat_statements where query like 'select count(*) from tmp%'; -[ RECORD 1 ]-------+-----------
PostgreSQL DBA(170) - pgAdmin(Queries For Index Maintenance)
本节简单介绍了PostgreSQL中用于索引维护的一些查询.
数据库实现原理#3(Merge Join)
归并连接的思想与归并排序的思想类似,详见代码注释.
数据库实现原理#2(获取第N个值)
获取数组中的第N个值,仍使用代码说明,算法参考快速排序的思想,详见代码注释. #include #include #include #include "../pub/pub.h" //tmparr : 待处理的数组 //counter : 数组元素个数 //n : 从小到大排列
数据库实现原理#1(Nested Loop Join)
下面使用代码的方式说明,较为简单,请自行阅读.
PostgreSQL 源码解读(249)- 实现简单的钩子函数
本节简单介绍了如何实现钩子函数.
PostgreSQL 递归查询
这篇文章对递归SQL的抽象和解释比较到位,摘录如下,有兴趣可参考原文. A general format of a recursive query is as follows: WITH RECURSIVE t AS ( non-recursive term (1) UNION ALL recursive term (2) ) SELECT
PostgreSQL DBA(169) - Develop(Distinct vs Group by)
本节简单介绍了PostgreSQL中和distinct和group by. 通常来说,获取唯一值,既可以用distinct也可以用group by,但在存在主键时,group by会做相应的优化,把多个分组键规约为主键.
PostgreSQL 源码解读(248)- HTAB动态扩展图解#2
本节简单介绍了PostgreSQL中的HTAB如何动态扩展,这是第2部分,结合代码进行解析.
PostgreSQL 源码解读(247)- HTAB动态扩展图解#1
本节简单介绍了PostgreSQL中的HTAB如何动态扩展,这是第1部分. 一、数据结构/* * Top control structure for a hashtable --- in a shared table, each backend * has its own copy (OK since no fields change at runtime) * 哈希表的顶层控制结构
PostgreSQL DBA(168) - pgAdmin(config:checkpoint)
本节简单介绍了PostgreSQL中的checkpoint
PostgreSQL DBA(167) - pgAdmin(config:work_mem)
本节简单介绍了PostgreSQL中的参数work_mem。
PostgreSQL 源码解读(246)- plpgsql(CreateFunction-SearchSysCache3)
本节简单介绍了PostgreSQL创建函数的过程,其实现函数是CreateFunction。这里介绍了CreateFunction中的通用函数SearchSysCache3。
Oracle vs PostgreSQL Develop(28) - function overload
本文比较了函数重载Oracle和PG的异同.
PostgreSQL DBA(166) - pgAdmin(Parallelism, what next?)
本节简单介绍了PostgreSQL并行的历史和未来的发展方向。
PostgreSQL 源码解读(245)- plpgsql(CreateFunction-construct_array)
本节简单介绍了PostgreSQL创建函数的过程,其实现函数是CreateFunction。这里介绍了CreateFunction中的通用函数construct_array。
PostgreSQL DBA(165) - pgAdmin(Create Function选项)
本节简单介绍了PostgreSQL创建函数中的选项。
PostgreSQL 源码解读(244)- plpgsql(CreateFunction-ProcedureCreate)
本节简单介绍了PostgreSQL创建函数的过程,其实现函数是CreateFunction。这里介绍了CreateFunction中的ProcedureCreate函数。
PostgreSQL 源码解读(243)- plpgsql(interpret_function_parameter_list)
本节简单介绍了PostgreSQL创建函数的过程,其实现函数是CreateFunction。这里介绍了CreateFunction中的interpret_function_parameter_list函数。
PostgreSQL 源码解读(242)- plpgsql(CreateFunction-compute_function_attributes)
本节简单介绍了PostgreSQL创建函数的过程,其实现函数是CreateFunction。