Skip to content

chore: bump libpg-query to 18.2.5 (PG 18) - #396

Merged
pyramation merged 2 commits into
mainfrom
chore/bump-libpg-query-18.2.5
Nov 23, 2026
Merged

pyramation merged 2 commits into
mainfrom
chore/bump-libpg-query-18.2.5

Conversation

@pyramation

@pyramation pyramation commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Bumps the PG 18 libpg-query dependency 18.2.4 → 18.2.5 (PG 18 WASM on the upb fork, constructive-io/libpg-query-node#198) in config/versions.json, every PG 18 package (deparser, lint, parse, parser, pgsql-types, plpgsql-deparser, plpgsql-parse, plpgsql-parser, transform-ast) and pnpm-lock.yaml. PG 13–17 untouched.

18.2.5 brings clean thrown errors for deep/OOM input, new location fields (e.g. DefElem.arg_location, already stripped by our cleanTrees), and parser version 180006. No test or snapshot changes were needed; locally pnpm build and the full pnpm -r run test pass (402 suites, 3535 tests).

First step of the release order: publish pgsql-parser, then bump constructive (makage), then constructive-db.


libpg-query and parser opened this PR for Dan
Implemented in session Bump pgsql-parser to libpg-query 18.2.5
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Bug Fixes
    • PL/pgSQL type names now normalize %TYPE and %ROWTYPE suffixes to lowercase while preserving the rest of the type name. Other forms, including quoted and unqualified names, remain unchanged.
  • Chores
    • Updated the PostgreSQL 18 query-processing component to version 18.2.5 across the application’s parsing and analysis tools. Other version entries remain unchanged.

@luxor-code-review

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

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR is a routine version-bump change: it updates pinned dependency versions in ten workspace manifests and aligns config/versions.json with the new PG18 libpg-query release. No source code, tests, or generated artifacts are modified. All lens and domain scans, including a dedicated release-consistency audit of pins versus versions.json, found no mismatches or partial-bump leftovers.

Files Change
config/versions.json Bumps the PG18 libpg-query version pin and related dist-tag entries
packages/*/package.json (9 manifests) Updates @pgsql/* and libpg-query dependency versions to match the new release

Reviewed commit: ff50faf

@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 23, 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.4 to 18.2.5 in the version configuration and nine package manifests. PL/pgSQL tree cleanup also lowercases trailing %TYPE and %ROWTYPE suffixes in typname values.

Changes: libpg-query Version and PL/pgSQL Cleanup

Layer / File(s) Summary
Align libpg-query versions
config/versions.json, packages/*/package.json
The configured PostgreSQL 18 libpg-query version and nine package manifests change from 18.2.4 to 18.2.5.
Normalize type suffixes
packages/plpgsql-deparser/test-utils/index.ts, packages/plpgsql-deparser/__tests__/clean-tree.test.ts
cleanProps lowercases a trailing %type or %rowtype suffix in typname values. Tests cover matching suffixes and values that remain unchanged.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

  • constructive-io/pgsql-parser#395: It adds AST cleanup for location fields associated with a PostgreSQL 18 libpg_query AST change. The descriptions do not confirm the merge order or dependency relationship.
Merge Risk: Minimal · up to 6860c

This updates the PostgreSQL 18 parser dependency to a patch release and normalizes type-name casing in test utilities. No merge-blocking risk is evident.

Architecture risk: Low · up to 6860c

The change affects 10 systems.

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

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — packages/plpgsql-deparser (library) was modified; 3 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 changes from 18.2.4 to 18.2.5.
  • observed — Modified behavior in packages/deparser/package.json: The libpg-query devDependency version changes from 18.2.4 to 18.2.5.
  • observed — Modified behavior in packages/lint/package.json: The libpg-query dependency version changes from 18.2.4 to 18.2.5.
  • observed — Modified behavior in packages/parse/package.json: The libpg-query dependency version changed from 18.2.4 to 18.2.5.
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 "chore: bump libpg-query to 18.2.5 (PG 18)" names the main change. The PR updates the PG 18 libpg-query dependency from 18.2.4 to 18.2.5 across config/versions.json and the PG 18 package.jso…
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 "chore: bump libpg-query to 18.2.5 (PG 18)" names the main change. The PR updates the PG 18 libpg-query dependency from 18.2.4 to 18.2.5 across config/versions.json and the PG 18 package.json files. The title is specific and matches the changeset. The changes to PL/pgSQL test utilities and tests are secondary and need not appear in the title.

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: 2
  • Waived: $0.50 (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 ff50faf and 6860cca.

Files ignored due to path filters: 1

  • __fixtures__/plpgsql-generated/generated.json is excluded by !__fixtures__/plpgsql-generated/**
Files selected for processing: 2

  • packages/plpgsql-deparser/__tests__/clean-tree.test.ts
  • packages/plpgsql-deparser/test-utils/index.ts

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

@socket-security

socket-security Bot commented Nov 23, 2026 •

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.4 ⏵ 18.2.5100 +1100100 +196100

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

@pyramation
pyramation merged commit 96ff52b into main Nov 23, 2026
22 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