Skip to content

Support pushdown for re2 extension#204

Merged
theory merged 1 commit intomainfrom
re2
Apr 16, 2026
Merged

Support pushdown for re2 extension#204
theory merged 1 commit intomainfrom
re2

Conversation

@serprex
Copy link
Copy Markdown
Member

@serprex serprex commented Apr 10, 2026

ClickHouse is working on a postgres extension using re2 for regex

This addresses incompatibility between CH & PG regex,
where engine depends on whether function is pushed down or not

@serprex serprex requested a review from theory April 10, 2026 06:05
@serprex serprex force-pushed the re2 branch 4 times, most recently from c7fa994 to 003186f Compare April 10, 2026 06:29
Copy link
Copy Markdown
Collaborator

@theory theory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add re2 as a recommended prereq:

--- a/META.json
+++ b/META.json
@@ -16,6 +16,9 @@
     "runtime": {
       "requires": {
         "PostgreSQL": "13.0.0"
+      },
+      "recommends": {
+        "pgre2": "0.1.0"
       }
     }
   },

A few other suggestions; would be nice to simplify the expected test output.

Comment thread test/expected/result_map.txt Outdated
Comment thread doc/pg_clickhouse.md
Comment thread doc/pg_clickhouse.md Outdated
Integrate support for the [re2 extension], which adds ClickHouse-
compatible RE2 matching functions to Postgres.

This gives users the option to avoid the incompatibility between the
ClickHouse & Postgres regex engines, avoiding the need to push down the
Postgres regular expression functions with potentially incompatible
expressions.

  [re2 extension]: https://github.com/ClickHouse/pg_re2
    "pg_re2: ClickHouse-compatible regex functions using RE2"
@theory theory merged commit b1d3bd4 into main Apr 16, 2026
36 checks passed
@theory theory deleted the re2 branch April 16, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants