Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

EXPLAIN VERBOSE "FDW Time" does not look right

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, postgresql, sql
Domain
databases

Research direction

Start with the EXPLAIN (ANALYZE, VERBOSE) output and the reported FDW Time for the supplied COUNT query. Trace how pg_clickhouse records planning and execution timing, then compare it with PostgreSQL's Planning Time and Execution Time. Done means the FDW Time value accurately reflects the intended timing scope.

Written by the indexing model from the issue text.

Description

benchmarks bug quality

Example:

EXPLAIN (ANALYZE, VERBOSE) SELECT COUNT(*) FROM hits WHERE "URL" LIKE '%google%';
 Foreign Scan  (cost=1.00..0.20 rows=1000 width=8) (actual time=10.212..10.214 rows=1 loops=1)
   Output: (count(*))
   Relations: Aggregate on (hits)
   Remote SQL: SELECT count(*) FROM "default".hits WHERE (("URL" LIKE '%google%'))
   FDW Time: 0.017 ms
 Planning Time: 0.998 ms
 Execution Time: 10.511 ms

Seems like pg_clickhouse is not properly recording the full time it spends planning and executing. Should that be its full time? Just planning?

Dominant language
C
Stars
284
Forks
21
Avg merge
23h 1m
Merged PRs (30d)
20

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/pg_clickhouse

All issues in ClickHouse/pg_clickhouse

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.