Skip to content

PGX SimpleProtocol test suite#10198

Merged
simvlad merged 1 commit into
temporalio:mainfrom
simvlad:fix-pgx-simple-protocol
May 14, 2026
Merged

PGX SimpleProtocol test suite#10198
simvlad merged 1 commit into
temporalio:mainfrom
simvlad:fix-pgx-simple-protocol

Conversation

@simvlad
Copy link
Copy Markdown
Contributor

@simvlad simvlad commented May 7, 2026

What changed?

Adds TestPGXSimpleProtocol — a new entry in the persistence integration suite that runs PostgreSQLSuite under the postgres12_pgx plugin with default_query_exec_mode=simple_protocol.

Why?

Regression coverage for issues like #9804. With pgx ≤ v5.9.1, current_executions.state/status (proto-enum-typed int32 fields with a String() method) were text-encoded via fmt.Stringer and rejected by Postgres on simple/exec protocol, the path users land on behind PgBouncer in transaction pooling. pgx v5.9.2 fixed it upstream; this test makes sure we notice if pgx is ever downgraded or if a similar issue sneaks in.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Verified locally: passes on pgx v5.9.2; fails reproducibly on v5.9.1 with invalid input syntax for type integer: "Created" matching #9804.

Potential risks

Adds one additional pass through PostgreSQLSuite to the Integration test job. Job timeout is 15 min, so should be fine, but worth observing.

@simvlad simvlad force-pushed the fix-pgx-simple-protocol branch 4 times, most recently from c2e6fb6 to 01ef033 Compare May 14, 2026 01:07
@simvlad simvlad force-pushed the fix-pgx-simple-protocol branch from 01ef033 to 272ca1b Compare May 14, 2026 06:29
@simvlad simvlad merged commit 51a63b7 into temporalio:main May 14, 2026
71 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.

2 participants