# GreptimeDB 携跳数索引，PG 元数据存储，Loki JSON 写入等功能给大家拜个早年！| Greptime 双周精选

Source: https://greptime.cn/blogs/2025-01-08-biweekly-report

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

最近的更新内容如下：

- 引入新的 SKIPPING INDEX 索引类型
- 支持 PostgreSQL 作为元数据存储后端
- 支持 JSON 格式的 Grafana Loki 写入协议
- 在 COPY TO 中使用 SELECT 限定范围
- 提升 FLOW 易用性

## 社区贡献者名单

在过去的三周里，GreptimeDB 共合并了 **134 个 PR**，其中有 **5 位独立贡献者**，累计 **9 个 PR** 被成功合并，还有很多待合并的 PR 。

祝贺以下各位在过去 3 周内成为我们最突出的贡献者：

- @[KKould](https://github.com/kkould) ([db#5230](https://github.com/GreptimeTeam/greptimedb/pull/5230) [db#5250](https://github.com/GreptimeTeam/greptimedb/pull/5250) [db#5259](https://github.com/GreptimeTeam/greptimedb/pull/5259))

- @[linyihai](https://github.com/linyihai) ([db#5245](https://github.com/GreptimeTeam/greptimedb/pull/5245) [db#5205](https://github.com/GreptimeTeam/greptimedb/pull/5205))

- @[lyang24](https://github.com/lyang24) ([db#5169](https://github.com/GreptimeTeam/greptimedb/pull/5169))

- @[yihong0618](https://github.com/yihong0618) ([db#5279](https://github.com/GreptimeTeam/greptimedb/pull/5279))

- @[zzzdong](https://github.com/zzzdong) ([dashboard#471](https://github.com/GreptimeTeam/dashboard/pull/471) [dashboard#472](https://github.com/GreptimeTeam/dashboard/pull/472))

👏 欢迎 @[yihong0618](https://github.com/yihong0618) @[zzzdong](https://github.com/zzzdong) 作为新的贡献者加入到社区，并成功合并了 PR，还有更多来自其他独立贡献者的 PR 正在等待合并。

<figure>
<img src="/zh/blogs/2025-01-08-biweekly-report/image1.png" alt="（图 1：Greptime 新晋 Contributors）" style="width: 80%; margin: 0 auto"/>
<figcaption>（图 1：Greptime 新晋 Contributors）</figcaption>
</figure>

🎉 衷心感谢我们所有的成员和贡献者！是你们的付出让我们的项目得以成功，也是你们让 GreptimeDB 成为一个更优质的产品。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#5176 实验性的 SKIPPING INDEX（）](https://github.com/GreptimeTeam/greptimedb/pull/5176)

我们非常高兴地宣布 GreptimeDB 引入了最新的索引类型 SKIPPING INDEX，它能够显著加快查询速度，尤其是高基数场景下，且存储开销相对较小。需要注意的是，这个实验性的索引目前处于早期预览阶段。

### [db#5208 PostgreSQL 作为新的元存储选项](https://github.com/GreptimeTeam/greptimedb/pull/5208)

在 election 功能实现后，我们现在能够使用与 PostgreSQL 兼容的 RDS 作为元数据存储，提供了一个可替代 etcd 的新选择。

### [db#5288 Grafana Loki JSON 写入协议](https://github.com/GreptimeTeam/greptimedb/pull/5288)

我们支持 Grafana Loki gRPC 写入协议已经有一段时间了。这次我们添加了对 JSON 协议的支持，以便用户更轻松地从 Loki 迁移到 GreptimeDB。

### [db#5250 带有 SELECT 查询的 COPY TO](https://github.com/GreptimeTeam/greptimedb/pull/5250)

我们现在可以在 `COPY TO` 子句中写入 `SELECT` 查询，例如：

```sql
COPY (select host, cpu, ts from demo where host = 'host2') TO '/tmp/export/demo.parquet';
```

### [db#5112](https://github.com/GreptimeTeam/greptimedb/pull/5112) [db#4890](https://github.com/GreptimeTeam/greptimedb/pull/4890) [db#5203](https://github.com/GreptimeTeam/greptimedb/pull/5203) [db#5251](https://github.com/GreptimeTeam/greptimedb/pull/5251) [db#5234](https://github.com/GreptimeTeam/greptimedb/pull/5234) 增强 Flow 的可用性和错误处理

在过去的几周里，我们致力于提升 Flow 的易用性。现在它具备更好的实时验证，带有更多上下文的错误消息和更智能的类型推断功能。

### [db#5273](https://github.com/GreptimeTeam/greptimedb/pull/5273) [db#5254](https://github.com/GreptimeTeam/greptimedb/pull/5254) 错误修复

有两种边缘情况可能导致意外行为，特别是在并发的自动表结构更改中。虽然这些情况很难遇到，但我们仍然建议用户升级到最新版本 v0.11.2。

## Good First Issue

### [db#5296 重构 QueryContext 以减少重复信息和结构](https://github.com/GreptimeTeam/greptimedb/issues/5296)

- **难度**: 中等

- **关键词**: 查询，重构


## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
