Skip to content

fix(deps): pin the pgx fork at its master tip - #21862

Merged
d-bytebase merged 1 commit into
mainfrom
fix/pg-session-timezone
Nov 3, 2026
Merged

d-bytebase merged 1 commit into
mainfrom
fix/pg-session-timezone

Conversation

@d-bytebase

@d-bytebase d-bytebase commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Dependency hygiene only. Two lines of go.mod / go.sum, no code change.

The pin named d3c6cdda, the v5.12.0 rebase, which is an ancestor of the fork's
master rather than its tip. Pinning an ancestor still resolves, but it means the
default branch and the shipped commit can drift: a later rebase would start from
whatever master happens to be, not from what Bytebase runs. This points the pin at
master's tip so those are the same commit.

This changes no code

  • diff -r between the two module trees in the module cache is empty.
  • Both fork patches are present at the new pin: ColumnTypePrecisionScale
    (stdlib/sql.go:704) and the timestamptz session TimeZone conversion
    (stdlib/sql.go:857).
  • TestConvertValueTimestampFromDriver passes unchanged, including its
    Zone == "CST" / Offset == 28800 assertions. Nothing in the test suite moved.

The fork's master reached this state via bytebase/pgx#4, which reverted
bytebase/pgx#3 so that master matches the shipped commit again.

Not in this PR

The v5.11 → v5.12 upgrade itself already landed in #21840. This PR adds no new
dependency version.

Removing the fork's time zone patch — and with it, deciding where timestamptz
should be rendered — is deliberately not here. That design question is open, and
the POSIX TimeZone failure behind it is real and still unfixed: an instance whose
session TimeZone is +08:00 or EST5EDT,M3.2.0/2,M11.1.0/2 fails every
timestamptz read, because the patch calls time.LoadLocation on that string. It is
pre-existing, not a regression, and it belongs with the time zone work.

Verification

  • gofmt clean; golangci-lint v2.15.0 → 0 issues; server build OK.
  • ./backend/store/... and ./backend/plugin/db/{pg,redshift,cockroachdb} pass.
  • The four backend/tests sample-instance tests pass.

🤖 Generated with Claude Code

@d-bytebase
d-bytebase requested a review from a team as a code owner November 2, 2026 15:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T05:56:35.830567Z 0d1fdaf New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9688dc6033

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/plugin/db/pg/query.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 59fa54e587

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/plugin/db/pg/query.go Resolved
@d-bytebase
d-bytebase force-pushed the fix/pg-session-timezone branch from 88edae5 to 0d1fdaf Compare November 3, 2026 05:54
@d-bytebase d-bytebase changed the title fix(pg,redshift,cockroachdb): keep timestamptz queries working for POSIX time zones fix(deps): update the pgx fork to master tip, decode timestamptz in UTC Nov 3, 2026
The pin named d3c6cdda, the v5.12.0 rebase, which is an ancestor of the fork's
master rather than its tip. Naming the tip keeps the pin on the default branch,
so a later rebase starts from the commit Bytebase actually ships.

This changes no code. The module trees at the two pseudo-versions are identical,
and both fork patches are present: ColumnTypePrecisionScale and the timestamptz
session TimeZone conversion.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@d-bytebase
d-bytebase force-pushed the fix/pg-session-timezone branch from 0d1fdaf to ee8d62e Compare November 3, 2026 06:42
@d-bytebase d-bytebase changed the title fix(deps): update the pgx fork to master tip, decode timestamptz in UTC fix(deps): pin the pgx fork at its master tip Nov 3, 2026
@d-bytebase
d-bytebase merged commit e171fe2 into main Nov 3, 2026
9 checks passed
@d-bytebase
d-bytebase deleted the fix/pg-session-timezone branch November 3, 2026 07:57
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