2024年6月28日

摘要: One sentence summary A temporary table could reside within a temporary tablespace, utilizing a temporary name in a temporary schema or namespace. More 阅读全文
posted @ 2024-06-28 16:39 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

2024年6月27日

摘要: Since version 14, gdb has a new interpreter 'dap'. With this new feature, we can debug c/c++/rust code within neovim without using other tools. build 阅读全文
posted @ 2024-06-27 16:28 winter-loo 阅读(3) 评论(0) 推荐(0) 编辑

2024年5月29日

摘要: The following sql statements will trigger calling function GetExistingLocalJoinPath. setup CREATE EXTENSION postgres_fdw; CREATE SERVER foreign_server 阅读全文
posted @ 2024-05-29 20:03 winter-loo 阅读(1) 评论(0) 推荐(0) 编辑

2024年5月11日

摘要: The SQL select sum(sum(a)) from myt1 group by a; This note focuses only on sum(sum(a)) and it's about how postgres rejects the sql above. Notes sum(su 阅读全文
posted @ 2024-05-11 20:25 winter-loo 阅读(2) 评论(0) 推荐(0) 编辑

2024年4月19日

摘要: This note will introduce the workflow of parse.pl of the ecpg precompiler. Run the precompiler: perl parse.pl . ../../../backend/parser/gram.y workflo 阅读全文
posted @ 2024-04-19 11:35 winter-loo 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月11日

摘要: 背景 在如下的 sql 中, select rowid from (select 1 from t); lightdb 24.1 以前会直接报错,说找不到 rowid 列。为了兼容 Oracle, 在 24.1 中,a56爆大奖在线娱乐们选择将告知子查询除了返回子查询应有的列之外,还需返回 rowid 列。 样例 以 阅读全文
posted @ 2024-04-11 16:26 winter-loo 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The SQL select a from (select a from t); Overview from (select a from t) will map to one RangeTblEntry struct of the outter query. from t will map to 阅读全文
posted @ 2024-04-11 16:09 winter-loo 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月3日

摘要: 背景 Oracle 中支持很多种分区管理操作。其中 merge partitions 会将多个连续分区合并成一个分区。lightdb 24.1 中支持了该功能。 merge partitions 功能支持 list 和 range 分区,不支持 hash 分区。 用例 range 分区 CREATE 阅读全文
posted @ 2024-04-03 09:14 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

2024年4月2日

摘要: 背景 Oracle 的 Raw 类型可以进行位操作,在 lightdb 24.1 中,对其中的函数:bit_and, bit_or, bit_xor, bit_complement 四个函数进行了改进:这些函数有了 strict 属性,即输入参数如果有 null, 则直接返回 null。 用例 bi 阅读全文
posted @ 2024-04-02 20:42 winter-loo 阅读(11) 评论(0) 推荐(0) 编辑

2024年3月26日

摘要: SQL CREATE TABLE measurement ( city_id int not null, logdate date not null, data text ) PARTITION BY RANGE (logdate); CREATE TABLE p1 PARTITION OF mea 阅读全文
posted @ 2024-03-26 00:33 winter-loo 阅读(7) 评论(0) 推荐(0) 编辑

导航