03 2024 档案

摘要: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 阅读(49) 评论(0) 推荐(0)

摘要: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 阅读(41) 评论(0) 推荐(0)

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

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

摘要: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 阅读(31) 评论(0) 推荐(0)

摘要:开启行级别改变记录 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 阅读(47) 评论(0) 推荐(0)

导航