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 阅读(13) 评论(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 阅读(11) 评论(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 阅读(25) 评论(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 阅读(9) 评论(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 阅读(12) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示