03 2024 档案

[code notes] implementation of creating partition table
摘要: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 阅读(30) 评论(0) 推荐(0)

[code notes] the implementation of alter table
摘要:Overview In this article, I will inspect the postgresql code to find out the implementation of alter table command, specifically, the add column subco 阅读全文

posted @ 2024-03-23 18:37 winter-loo 阅读(26) 评论(0) 推荐(0)

lightdb 支持 timestamp_to_scn 和 ora_rowscn
摘要:背景 Oracle 的 timestamp_to_scn 函数能根据时间戳返回一个 SCN(System Change Number). scn 与事务有关,当系统有事务提交后,最新的 scn 就会变更成一个更大的值。 ORA_ROWSCN 在 Oracle 中记录了每一行提交后的 scn. 在 L 阅读全文

posted @ 2024-03-12 16:17 winter-loo 阅读(38) 评论(0) 推荐(0)

【源码日记】type cast
摘要:The SQL select xmin::text::int8; grammar a_expr: a_expr TYPECAST Typename { $$ = makeTypeCast($1, $3, @2); } static Node * makeTypeCast(Node *arg, Typ 阅读全文

posted @ 2024-03-08 09:20 winter-loo 阅读(12) 评论(0) 推荐(0)

ora_rowscn 行为观察
摘要:开启行级别改变记录 create table foo3(a int) rowdependencies; 插入数据 insert into foo3 values (1); insert into foo3 values (2); -- 结果为 null select ora_rowscn from 阅读全文

posted @ 2024-03-06 15:42 winter-loo 阅读(27) 评论(0) 推荐(0)

导航