Skip to content

chore: bump libpg-query to 18.2.7 (PG 18 stack depth fix) - #408

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1795665300-libpg-query-18.2.7
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1795665300-libpg-query-18.2.7

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Bumps libpg-query 18.2.6 → 18.2.7 in every PG 18 package and config/versions.json (lockfile updated). 18.2.7 restores the PG 18 WASM stack-depth budget (constructive-io/libpg-query-node#210, libpg_query 7791971), so deeply chained expressions parse again.

Adds a regression test in packages/parser/__tests__/parser.test.ts: parseSync('SELECT 1 + 1 + ... ') with 2000 terms. On 18.2.6 this returns stack depth limit exceeded; on 18.2.7 it parses.

Old/new WASM parseSync diff over all kitchen-sink fixtures: 312 files / 24159 generated statements, 0 differences; generated files unchanged.


libpg-query and parser opened this PR for Dan
Implemented in session Publish libpg-query 18.2.7 with WASM stack fix
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Chores
    • Updated the PostgreSQL parsing components to a newer patch version.
  • Tests
    • Expanded coverage to verify that synchronous parsing handles a SELECT expression with 2,000 chained terms and returns a single statement.

@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 2000-term test only asserts statement count (parser.test.ts:70) — The new test at packages/parser/tests/parser.test.ts:70-73 checks only that parseSync(sql).stmts has length 1.

This PR upgrades the libpg-query dependency to 18.2.7 in every package.json and aligns the pin in config/versions.json, plus adds a regression test parsing a 2000-term chained expression.

Files Change
config/versions.json, packages/*/package.json (9 packages) Bump libpg-query pin from 18.2.6 to 18.2.7 across the workspace and version config
packages/parser/__tests__/parser.test.ts Add a test parsing a 2000-term chained + expression via parseSync

No other files were touched; none were skipped.

Reviewed commit: 3921c71

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PostgreSQL 18 libpg-query version changes from 18.2.6 to 18.2.7 in the version configuration and package manifests. A sync parser test checks a SELECT expression with 2,000 terms.

Changes: libpg-query update

Layer / File(s) Summary
Dependency update and sync parser validation
config/versions.json, packages/deparser/package.json, packages/lint/package.json, packages/parse/package.json, packages/parser/package.json, packages/pgsql-types/package.json, packages/plpgsql-deparser/package.json, packages/plpgsql-parse/package.json, packages/plpgsql-parser/package.json, packages/transform-ast/package.json, packages/parser/__tests__/parser.test.ts
The version configuration and package manifests update libpg-query to 18.2.7. The parser test checks that parseSync returns one statement for a SELECT expression with 2,000 terms.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: luxor-code-review

Merge Risk: Minimal · up to 3921c · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Architecture risk: Low · up to 3921c

The change affects 10 systems.

Changed systems: packages/parser, config, packages/deparser, packages/lint, packages/parse, packages/pgsql-types, packages/plpgsql-deparser, packages/plpgsql-parse, packages/plpgsql-parser, packages/transform-ast

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — packages/parser (library) was modified; 2 changed files map to changed impact.
  • observed — config (service) was modified; 1 changed file maps to changed impact.
  • observed — packages/deparser (library) was modified; 1 changed file maps to changed impact.
  • observed — packages/lint (library) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in config/versions.json: The PostgreSQL 18 libpg-query version changed from 18.2.6 to 18.2.7.
  • observed — Modified behavior in packages/deparser/package.json: The libpg-query development dependency version changes from 18.2.6 to 18.2.7.
  • observed — Modified behavior in packages/lint/package.json: The libpg-query dependency version changes from 18.2.6 to 18.2.7.
  • observed — Modified behavior in packages/parse/package.json: The libpg-query dependency version changes from 18.2.6 to 18.2.7.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a dependency bump of libpg-query from 18.2.6 to 18.2.7 (the version bump is the primary change). It also names the purpose, a PG 18 stack depth fix, which matches the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a dependency bump of libpg-query from 18.2.6 to 18.2.7 (the version bump is the primary change). It also names the purpose, a PG 18 stack depth fix, which matches the PR objectives. The title is specific and concise, and a teammate scanning history would understand the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 11
  • Waived: $2.75 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial, billed after paid activation unless disabled. Manage usage-based reviews.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 05cf1eb and 3921c71.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 11

  • config/versions.json
  • packages/deparser/package.json
  • packages/lint/package.json
  • packages/parse/package.json
  • packages/parser/__tests__/parser.test.ts
  • packages/parser/package.json
  • packages/pgsql-types/package.json
  • packages/plpgsql-deparser/package.json
  • packages/plpgsql-parse/package.json
  • packages/plpgsql-parser/package.json
  • packages/transform-ast/package.json

Limit details: You’ve used all 10 included reviews currently available.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedlibpg-query@​18.2.6 ⏵ 18.2.710010010096 +1100

View full report

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

@Luxor-Code-Review Thanks. Keeping it as a single-statement check on purpose: the regression on 18.2.6 is parseSync throwing stack depth limit exceeded, so a successful parse is what the test guards; AST shape for chained A_Expr is already covered by the kitchen-sink round-trip fixtures.

Written by Devin

@devin-ai-integration
devin-ai-integration Bot merged commit 432410e into main Nov 26, 2026
24 checks passed
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.

1 participant