01 2024 档案

Overview how plpgsql function gets executed
摘要:postgre version 17(commit hash: a17aa50d67bad4ee39a94988c679d2c2fed0e934) The SQL CREATE FUNCTION process_orders() RETURNS void AS $$ DECLARE c record 阅读全文

posted @ 2024-01-30 20:06 winter-loo 阅读(32) 评论(0) 推荐(0)

lightdb 允许建表时同时建立索引
摘要:背景 在 Mysql 的建表语法中,用户可以使用 index 关键字指定列名作为索引。在 LightDB 24.1 中支持了该语法的部分特性。 用例 -- use default index name create table foo(a int, index (a)); -- create uni 阅读全文

posted @ 2024-01-22 11:58 winter-loo 阅读(24) 评论(0) 推荐(0)

lightdb 允许常用比较操作符之前存在空格
摘要:背景 在 Oracle 中,>=, <=, !=, <> 操作符字符之间允许存在空格。为兼容这种特性,LightDB 24.1 中对这些比较操作符作了特殊处理。 用例 select count(*) from dual where 1 > = 1; select count(*) from dual 阅读全文

posted @ 2024-01-22 11:43 winter-loo 阅读(9) 评论(0) 推荐(0)

lightdb 支持无参函数无括号使用
摘要:背景 在 Oracle 中,用户自定义的无参函数可以不带括号执行。为支持该特性,LightDB 24.1 版本中,允许用户使用无参函数的函数名调用函数,包括系统函数,如:now. 此功能限制在 LightDB 的 oracle 数据库下运行。 用例 create function fn_nopara 阅读全文

posted @ 2024-01-22 11:29 winter-loo 阅读(18) 评论(0) 推荐(0)

lightdb datetime 函数参数名支持
摘要:背景 在 Oracle 和 PostgreSQL 中 datetime 标识符并没有作为关键字,也不是数据类型。在 Mysql 中,datetime 是数据类型名,但并不是保留关键字。在 LightDB 23.4 及以前版本中,datetime 被误当成可以作为列名的关键字,导致 Oracle 用户 阅读全文

posted @ 2024-01-22 11:06 winter-loo 阅读(10) 评论(0) 推荐(0)

what is query jumbling
摘要:what is ‘query jumbling’? SUMMARY: it’s a mechanism for calculating query id. DETAIL: PostgreSQL extracts the node->type of each Node in the raw query 阅读全文

posted @ 2024-01-12 11:23 winter-loo 阅读(40) 评论(0) 推荐(0)

[PG] trace parsing steps of bison
摘要:setup In the section of C declarations within the file src/backend/parser/gram.y, include the following code, #ifdef YYDEBUG #undef YYDEBUG #endif #de 阅读全文

posted @ 2024-01-04 21:16 winter-loo 阅读(98) 评论(0) 推荐(0)

导航