2023年10月31日

摘要: Function Candidates Selection Algorithm environment setup In lightdb orafce extension, execute sql below, CREATE DOMAIN oracle.clob AS TEXT; -- versio 阅读全文
posted @ 2023-10-31 23:38 winter-loo 阅读(16) 评论(0) 推荐(0) 编辑

2023年10月19日

摘要: query parsing in mysql mysql source code version: 8.0.34 (from MYSQL_VERSION file) This an article from questions to understandings. which file does m 阅读全文
posted @ 2023-10-19 14:45 winter-loo 阅读(21) 评论(0) 推荐(0) 编辑

2023年8月11日

摘要: 在上一篇中,主要探究了 postgresql 源码层面是怎么实现聚合函数的。本篇将探究 having clause 是如何实现的。 setup create table foo(a int, b int); insert into foo select random() * i/2, random( 阅读全文
posted @ 2023-08-11 20:52 winter-loo 阅读(6) 评论(0) 推荐(0) 编辑

2023年8月10日

摘要: 该文章将分为上下两篇, 从源码层面了解 aggregate function 怎么实现 从源码层面了解 having clause 怎么实现 第一篇是阅读第二遍的前提。本文讲述的是第一篇的内容。每一篇文章内容会分为 5 个部分,对应一条 sql 的执行流程。这 5 个部分是: parser anal 阅读全文
posted @ 2023-08-10 21:12 winter-loo 阅读(24) 评论(0) 推荐(0) 编辑

2023年8月7日

摘要: 正常安装 `openssh-server`: ```shell sudo yum install -y openssh-server ``` WSL 中的特殊配置: ```shell mv /usr/bin/systemctl /usr/bin/systemctl.old curl https:// 阅读全文
posted @ 2023-08-07 21:22 winter-loo 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 以前是自己编译想要的 gcc 版本。从源码安装的好处是可以使用自己想用的 gcc 版本,缺点就是麻烦。 在编译 greenplum 时,发现有个通用处理方法来使用更高版本 GCC. 原文链接 这里记录一下 CentOS 上用到的命令: yum install -y centos-release-sc 阅读全文
posted @ 2023-08-07 18:49 winter-loo 阅读(66) 评论(0) 推荐(0) 编辑

2023年8月4日

摘要: ## 背景 lightdb 在为了兼容 oracle 和 mysql 语法,,在 postgresql 原有的建表选项上新增了一些选项并自定义了一些选项: 1. compress/nocompress 2. logging/nologging 3. with primary key 4. distr 阅读全文
posted @ 2023-08-04 17:10 winter-loo 阅读(17) 评论(0) 推荐(0) 编辑

2023年8月1日

摘要: 背景 目前,lightdb 在兼容 oracle,目标是 oracle 用户不用修改 sql 代码无缝切换到 lightdb 数据库。为此,lightdb 结合开源 orafce 插件和内核级支持,实现用户的良好体验。在 lightdb 版本 LightDB1.0.V202303.00.000中,新 阅读全文
posted @ 2023-08-01 20:30 winter-loo 阅读(37) 评论(0) 推荐(0) 编辑

2023年7月27日

摘要: ## 背景 在 Oracle 中,在旧表上用 `alter table` 命令一次添加多列是可以把列定义放在要括号里的,而 lightdb 之前版本 `alter table` 命令必须要多次执行 `add ...`. 此次版本允许 lightdb 有同样功能。LightDB 版本为 `LightD 阅读全文
posted @ 2023-07-27 14:33 winter-loo 阅读(49) 评论(0) 推荐(0) 编辑

2023年7月26日

摘要: ## 背景 lightdb 目前兼容 mysql, oracle 语法。为了提醒用户正在使用的是哪种类型的数据库,lightdb 在 ltsql 端增加了连接提示。 用户在初次连接数据库或在 ltsql 内切换数据库时,会打印一条消息提示。该功能出现在 lightdb 版本:`LightDB1.0. 阅读全文
posted @ 2023-07-26 20:48 winter-loo 阅读(28) 评论(0) 推荐(0) 编辑

导航