# Building v1.4: Bulk Writes over PostgreSQL COPY & a Native PromQL Engine | Greptime Monthly Report - No. 90

Source: https://greptime.com/blogs/2026-11-30-greptimedb-monthly-report

## Summary

*November 2026 · 2026-11-01 – 2026-11-30*

Most of November went into v1.4, and v1.3 got two maintenance releases, [v1.3.1](/blogs/2026-11-16-greptimedb-v1-3-1-release) and [v1.3.2](/blogs/2026-12-01-greptimedb-v1-3-2-release). What landed this month:

- PostgreSQL `COPY` adds JSONL, Arrow, OTLP and Remote Write formats.
- A native PromQL engine, much faster in our tests and open for testing.
- JSON2 nested-field indexes, exemplar storage, security and performance fixes.

## v1.4 Development

The following changes merged to `main` and will ship in v1.4. They are in the [nightly builds](https://github.com/GreptimeTeam/greptimedb/releases).

### Bulk writes over PostgreSQL COPY

[October](/blogs/2026-10-31-greptimedb-monthly-report) added CSV and InfluxDB line protocol to PostgreSQL `COPY FROM STDIN`. This month adds JSONL, Arrow IPC, OTLP and Prometheus Remote Write, so a PostgreSQL client can bulk-load tables and send metrics, logs and traces. Writes use the session's user and database. The [COPY FROM STDIN documentation](https://docs.greptime.com/nightly/user-guide/protocols/postgresql-copy-in) covers each format and its options.

```sql
-- Newline-delimited JSON objects, keys matched to column names
COPY readings FROM STDIN WITH (FORMAT jsonl);

-- An Arrow IPC stream, written through the Arrow Flight bulk path
COPY readings FROM STDIN WITH (FORMAT arrow);

-- One OTLP protobuf message; signal is 'metrics' (default), 'logs' or 'traces'
COPY FROM STDIN WITH (FORMAT otlp);
COPY app_logs FROM STDIN WITH (FORMAT otlp, signal 'logs');

-- One compressed Prometheus Remote Write request body
COPY FROM STDIN WITH (FORMAT promwrite, version 2);
```

In an [ingestion benchmark](https://github.com/killme2008/greptimedb-ingestion-benchmark/pull/4) against a release build of `main`, `COPY` with Arrow IPC wrote 2.53 million points/s, 11% more than gRPC Arrow Flight bulk ingestion. JSONL reached 1.12 million and CSV 0.96 million points/s, against about 51,000 for PostgreSQL `INSERT`. The test ran a standalone server and a Go client on one machine, with 200,000 rows in 1,000-row batches and 4 concurrent writers.

| Writer | Points/s | Batch p95 (ms) |
|---|---:|---:|
| COPY Arrow IPC | 2,525,233 | 2.2 |
| gRPC Bulk (Arrow Flight) | 2,265,344 | 2.3 |
| COPY JSONL | 1,119,562 | 5.1 |
| COPY CSV | 962,540 | 5.8 |
| COPY InfluxDB line protocol | 785,246 | 7.0 |
| PostgreSQL INSERT | 51,258 | 90.6 |


### A native PromQL engine

The current engine runs PromQL as a DataFusion plan. The new engine reads raw series and keeps them in series form through range functions, aggregation and native histogram evaluation ([db#10480](https://github.com/GreptimeTeam/greptimedb/pull/10480)). In our tests it is much faster than the current engine. It is still being refined; stay tuned for the numbers.

The engine is off by default. To test it, set `query.experimental_native_promql = true` in the frontend or standalone configuration, or run `SET query.experimental_native_promql = true` in a session. Try it with your own queries, and report wrong results or slow queries on [GitHub Issues](https://github.com/GreptimeTeam/greptimedb/issues).

### Indexes on JSON2 nested fields

[JSON2](/blogs/2026-09-23-greptimedb-json2-deep-dive) type hints can declare an index on each nested path. [October](/blogs/2026-10-31-greptimedb-monthly-report) added `INVERTED INDEX` and `SKIPPING INDEX`; this month adds `FULLTEXT INDEX` with the `bloom` or `tantivy` backend, used by `matches`, `matches_term` and eligible `LIKE` filters ([db#10064](https://github.com/GreptimeTeam/greptimedb/pull/10064)). A query filtering on an indexed path prunes SSTs instead of scanning the whole JSON column.

```sql
CREATE TABLE logs (
    ts TIMESTAMP TIME INDEX,
    attrs JSON2 (
        service.name STRING INVERTED INDEX,
        status BIGINT SKIPPING INDEX,
        message STRING FULLTEXT INDEX WITH (backend = 'bloom')
    )
) WITH ('append_mode' = 'true');

SELECT * FROM logs WHERE matches_term(attrs.message, 'timeout');
```

See [full-text indexes on subpaths](https://docs.greptime.com/nightly/user-guide/logs/json2#full-text-indexes-on-subpaths) for the syntax and options.

### Exemplars

Exemplars sent with Prometheus Remote Write v1 or v2 and with OTLP metrics are stored, and `/v1/prometheus/api/v1/query_exemplars` returns them in the Prometheus exemplar API format ([db#9922](https://github.com/GreptimeTeam/greptimedb/pull/9922), [db#9923](https://github.com/GreptimeTeam/greptimedb/pull/9923), [db#9924](https://github.com/GreptimeTeam/greptimedb/pull/9924)). Each exemplar keeps its labels, such as `trace_id`, which link a metric sample to its trace.

Exemplars are stored in the `greptime_metrics_exemplars` table of each database. Grafana's Prometheus data source reads them from GreptimeDB as it does from Prometheus:

<figure style="text-align: center">
  <img src="/blogs/2026-11-30-greptimedb-monthly-report/exemplars-grafana.png" alt="Grafana panel showing p99 latency with exemplars stored in GreptimeDB" style="max-width: 960px; width: 100%; display: block; margin: 0 auto">
  <figcaption>Exemplars on a p99 latency panel, read from GreptimeDB through the Prometheus data source</figcaption>
</figure>

### Security, correctness and performance

- Security: most of this month's hardening also shipped in v1.3.1 and v1.3.2 (see [Maintaining v1.3](#maintaining-v1-3)). On `main`, `COPY ... TO` also rejects unsafe local file names ([db#10462](https://github.com/GreptimeTeam/greptimedb/pull/10462)).
- Performance: distributed queries push column projections down to datanodes ([db#10221](https://github.com/GreptimeTeam/greptimedb/pull/10221)). Filtered TopK queries fill their heaps earlier ([db#10515](https://github.com/GreptimeTeam/greptimedb/pull/10515)), scans skip SST files by primary key range before reading their footers ([db#10564](https://github.com/GreptimeTeam/greptimedb/pull/10564)), and SST metadata uses less memory ([db#10356](https://github.com/GreptimeTeam/greptimedb/pull/10356)). From the community, filters on `date_bin(...)` of the time index prune by time range, which speeds up views that bucket data for Grafana ([db#10345](https://github.com/GreptimeTeam/greptimedb/pull/10345)).
- Operations: `information_schema.compaction_tasks` lists running compaction tasks and `ADMIN cancel_region_compaction` cancels one ([db#10173](https://github.com/GreptimeTeam/greptimedb/pull/10173), [db#10229](https://github.com/GreptimeTeam/greptimedb/pull/10229)). Automatic compaction shares its slots across regions, so one region with a large backlog no longer starves the rest ([db#9947](https://github.com/GreptimeTeam/greptimedb/pull/9947)). Before maintenance, `POST /admin/datanode/drain` on metasrv moves a datanode's leader regions elsewhere ([db#10083](https://github.com/GreptimeTeam/greptimedb/pull/10083)).

## Maintaining v1.3

Two maintenance releases shipped for v1.3. Both upgrade in place; we recommend that v1.3 users upgrade to v1.3.2.

- [v1.3.1](/blogs/2026-11-16-greptimedb-v1-3-1-release) (November 13) fixes cases where written data could be lost after a repartition rollback or datanode restart, and the periodic local WAL sync not reaching disk under the default configuration. Switching databases over HTTP, MySQL or PostgreSQL checks the user's access, admin functions require `ADMIN` privileges, and credentials no longer appear in diagnostic output, logs or table options. New tables from direct OTLP log ingestion use the `greptime_log_v1` schema, with `service_name` in the primary key and a skipping index on `trace_id`.
- [v1.3.2](/blogs/2026-12-01-greptimedb-v1-3-2-release) (November 30) fixes deleted rows reappearing on `last_non_null` tables, `DELETE` not removing rows on tables partitioned by a field column, precision loss in `COPY FROM`, and query failures on field values of 1 MiB or more. With `user_provider` configured, `/debug/*` endpoints require authentication.

Two changes can break existing clients. From v1.3.1, MySQL and PostgreSQL connections must use a database the user can access. From v1.3.2, scripts that call `/debug/*` must send credentials. The release posts list the other upgrade notes.

## Ecosystem Updates

- Dashboard [v0.14.3](https://github.com/GreptimeTeam/dashboard/releases/tag/v0.14.3)–[v0.14.7](https://github.com/GreptimeTeam/dashboard/releases/tag/v0.14.7) add a Service Map to the Traces view and a Japanese UI. v1.3.1 bundles v0.14.6 and v1.3.2 bundles v0.14.7. The [live demo](https://live.greptime.cloud/) runs the OpenTelemetry Demo against GreptimeDB, and the [live demo walkthrough](/blogs/2026-11-25-explore-greptimedb-live-demo) shows what to look at.
- Helm charts [greptimedb-cluster 1.3.3](https://github.com/GreptimeTeam/helm-charts/releases/tag/greptimedb-cluster-1.3.3) and [greptimedb-standalone 1.3.2](https://github.com/GreptimeTeam/helm-charts/releases/tag/greptimedb-standalone-1.3.2) deploy v1.3.1 by default.
- Grafana data source [v3.0.5](https://github.com/GreptimeTeam/greptimedb-grafana-datasource/releases/tag/v3.0.5) fixes TLS hostname verification and SNI.
- Rust ingester [v0.20.0](https://github.com/GreptimeTeam/greptimedb-ingester-rust/releases/tag/v0.20.0) adds `BulkStreamWriter::alloc_backfill_rows_buffer` for backfilling rows across hours.

## Contributors

Over the past month, **404 PRs** from **33 contributors** were merged. Among them, **21 community contributors** contributed **38 PRs**.
Welcome to our new contributors: **[@dayan02dev](https://github.com/dayan02dev)**, **[@shuxiachai](https://github.com/shuxiachai)**, **[@florissmit10](https://github.com/florissmit10)**, **[@SAMARTHJAISWAL](https://github.com/SAMARTHJAISWAL)**, **[@AbstractBike](https://github.com/AbstractBike)**, **[@andrewmains12](https://github.com/andrewmains12)**, **[@arpitjain099](https://github.com/arpitjain099)**, **[@boaz2026](https://github.com/boaz2026)**, **[@g4lb](https://github.com/g4lb)**, **[@luckysxx](https://github.com/luckysxx)**, **[@pcbeingused33](https://github.com/pcbeingused33)**, **[@vishalkotak](https://github.com/vishalkotak)**, **[@zaidrain06](https://github.com/zaidrain06)**!

Thanks to the community contributors who shipped this month:

- **[@dayan02dev](https://github.com/dayan02dev)** *[db#10726](https://github.com/GreptimeTeam/greptimedb/pull/10726)* *[db#10718](https://github.com/GreptimeTeam/greptimedb/pull/10718)* *[db#10491](https://github.com/GreptimeTeam/greptimedb/pull/10491)* *[db#10481](https://github.com/GreptimeTeam/greptimedb/pull/10481)* *[db#10443](https://github.com/GreptimeTeam/greptimedb/pull/10443)* *[db#10397](https://github.com/GreptimeTeam/greptimedb/pull/10397)* *[db#10386](https://github.com/GreptimeTeam/greptimedb/pull/10386)*
- **[@Alorun](https://github.com/Alorun)** *[db#10588](https://github.com/GreptimeTeam/greptimedb/pull/10588)* *[db#10465](https://github.com/GreptimeTeam/greptimedb/pull/10465)* *[db#10306](https://github.com/GreptimeTeam/greptimedb/pull/10306)*
- **[@shuxiachai](https://github.com/shuxiachai)** *[db#10458](https://github.com/GreptimeTeam/greptimedb/pull/10458)* *[db#10446](https://github.com/GreptimeTeam/greptimedb/pull/10446)* *[db#10445](https://github.com/GreptimeTeam/greptimedb/pull/10445)*
- **[@Aumnertic](https://github.com/Aumnertic)** *[db#10090](https://github.com/GreptimeTeam/greptimedb/pull/10090)* *[db#9891](https://github.com/GreptimeTeam/greptimedb/pull/9891)*
- **[@BootstrapperSBL](https://github.com/BootstrapperSBL)** *[db#10679](https://github.com/GreptimeTeam/greptimedb/pull/10679)* *[db#10112](https://github.com/GreptimeTeam/greptimedb/pull/10112)*
- **[@florissmit10](https://github.com/florissmit10)** *[db#10345](https://github.com/GreptimeTeam/greptimedb/pull/10345)* *[db#9986](https://github.com/GreptimeTeam/greptimedb/pull/9986)*
- **[@SAMARTHJAISWAL](https://github.com/SAMARTHJAISWAL)** *[db#10643](https://github.com/GreptimeTeam/greptimedb/pull/10643)* *[db#10560](https://github.com/GreptimeTeam/greptimedb/pull/10560)*
- **[@Tyagiquamar](https://github.com/Tyagiquamar)** *[db#10251](https://github.com/GreptimeTeam/greptimedb/pull/10251)* *[db#9057](https://github.com/GreptimeTeam/greptimedb/pull/9057)*
- **[@AbstractBike](https://github.com/AbstractBike)** *[db#9518](https://github.com/GreptimeTeam/greptimedb/pull/9518)*
- **[@andrewmains12](https://github.com/andrewmains12)** *[db#10205](https://github.com/GreptimeTeam/greptimedb/pull/10205)*
- **[@arpitjain099](https://github.com/arpitjain099)** *[db#10299](https://github.com/GreptimeTeam/greptimedb/pull/10299)*
- **[@boaz2026](https://github.com/boaz2026)** *[db#10519](https://github.com/GreptimeTeam/greptimedb/pull/10519)*
- **[@fengyue-xve](https://github.com/fengyue-xve)** *[db#9452](https://github.com/GreptimeTeam/greptimedb/pull/9452)*
- **[@g4lb](https://github.com/g4lb)** *[db#10728](https://github.com/GreptimeTeam/greptimedb/pull/10728)*
- **[@lczllx](https://github.com/lczllx)** *[db#10045](https://github.com/GreptimeTeam/greptimedb/pull/10045)*
- **[@luckysxx](https://github.com/luckysxx)** *[db#10022](https://github.com/GreptimeTeam/greptimedb/pull/10022)*
- **[@pcbeingused33](https://github.com/pcbeingused33)** *[db#10639](https://github.com/GreptimeTeam/greptimedb/pull/10639)*
- **[@QuakeWang](https://github.com/QuakeWang)** *[db#10751](https://github.com/GreptimeTeam/greptimedb/pull/10751)*
- **[@tian1220A](https://github.com/tian1220A)** *[db#10200](https://github.com/GreptimeTeam/greptimedb/pull/10200)*
- **[@vishalkotak](https://github.com/vishalkotak)** *[db#10717](https://github.com/GreptimeTeam/greptimedb/pull/10717)*
- **[@zaidrain06](https://github.com/zaidrain06)** *[db#10710](https://github.com/GreptimeTeam/greptimedb/pull/10710)*

Several v1.3.2 fixes came from community contributors: deleted rows reappearing on `last_non_null` tables ([db#10717](https://github.com/GreptimeTeam/greptimedb/pull/10717), [db#10726](https://github.com/GreptimeTeam/greptimedb/pull/10726)), `DELETE` on tables partitioned by a field column ([db#10710](https://github.com/GreptimeTeam/greptimedb/pull/10710)), lost precision in `COPY FROM` ([db#10560](https://github.com/GreptimeTeam/greptimedb/pull/10560)), and column order after table reconciliation ([db#10251](https://github.com/GreptimeTeam/greptimedb/pull/10251)).

## Good First Issues

New to GreptimeDB? These are scoped for a first contribution. Comment on an issue to pick it up.

### [Issue#6621](https://github.com/GreptimeTeam/greptimedb/issues/6621) Add config option to host on subpath

Add a config option so GreptimeDB can be served under a URL prefix such as `/monitoring/greptimedb`, without redirecting users to root-level paths.

Keywords: Configuration, HTTP, Dashboard

Difficulty: Medium

### [Issue#10737](https://github.com/GreptimeTeam/greptimedb/issues/10737) Disallow non-NULL primary-key tag defaults in CREATE and ALTER TABLE for sparse Mito tables

On tables created with `WITH ('primary_key_encoding'='sparse')`, reject non-`NULL` defaults on primary-key (tag) columns in `CREATE TABLE`, `ALTER TABLE ADD COLUMN` and `ALTER COLUMN ... SET DEFAULT`. No default and `DEFAULT NULL` stay allowed. The issue explains why such defaults can produce rows with missing tag values.

Keywords: DDL, SQL validation, sparse primary key

Difficulty: Medium

## Get Involved

- Docs: https://docs.greptime.com
- GitHub: https://github.com/GreptimeTeam/greptimedb
- X: https://x.com/Greptime

Open an issue for bugs and feature requests, or drop into the community channel.
