Dotta and Claude Opus 5.5
f9b5ddc93b
fix(db): recover prepared statements that a pooler or schema change invalidates
...
With DATABASE_PREPARED_STATEMENTS=true behind a transaction-mode pooler
(PgBouncer 1.22+, Neon -pooler hosts), a migration that changes a column
type makes the pooler's shared prepared statement fail for every client and
process with "cached plan must not change result type", and postgres.js then
caches a statement without columns, so later executions on that connection
throw a TypeError even after the schema is fixed.
When a prepared statement fails with 26000, 42P05, or that 0A000 error, stop
preparing its text for the rest of the process (decided at execution, so
queued queries see it), retry pooled statements once unprepared, and retry a
transaction whose first statement failed. Cap prepared texts at 1,000 per
client and skip texts over 8 KB. Expose the counts through
preparedStatementStats. Behaviour with the flag unset or false is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 21:07:41 -06:00
..
2026-11-12 15:19:32 -06:00
2026-11-03 10:13:03 -06:00
2026-11-14 03:10:32 +00:00
2026-10-19 17:45:26 -07:00
2026-11-04 08:32:31 -06:00
2026-11-14 20:10:51 -06:00
2026-11-13 15:43:10 -08:00
2026-11-10 13:07:59 -06:00
2026-11-10 12:17:50 -06:00
2026-10-26 16:32:13 -07:00
2026-11-11 16:28:02 -08:00
2026-10-19 16:58:17 -05:00
2026-10-29 11:17:17 -05:00
2026-11-06 17:31:04 -06:00
2026-10-22 18:17:34 -05:00
2026-11-09 20:52:14 -06:00
2026-11-09 15:02:54 -08:00
2026-11-06 11:01:25 -06:00
2026-11-10 13:07:59 -06:00
2026-11-10 13:07:59 -06:00
2026-11-13 13:09:04 -06:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-10-27 11:22:25 -05:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-11-12 19:17:41 -06:00
2026-11-10 13:07:59 -06:00
2026-11-03 18:01:07 -06:00
2026-10-30 19:21:33 +00:00
2026-10-27 11:21:44 -05:00
2026-10-30 16:21:46 -05:00
2026-10-27 23:06:31 -05:00
2026-11-10 13:07:59 -06:00
2026-11-14 20:29:25 -06:00
2026-11-05 17:38:32 -08:00
2026-11-02 17:12:22 -06:00
2026-11-14 18:02:27 -06:00
2026-11-14 20:01:28 -06:00
2026-11-14 21:07:41 -06:00
2026-11-04 07:29:28 -06:00
2026-11-06 11:49:38 -06:00
2026-11-12 16:52:06 -06:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-11-10 13:07:59 -06:00
2026-11-13 19:41:17 -08:00
2026-11-04 07:29:28 -06:00
2026-10-30 09:10:50 -07:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-10-29 08:58:27 -05:00
2026-10-27 20:33:01 -05:00
2026-10-27 19:23:24 -05:00
2026-10-27 16:10:44 -05:00
2026-10-27 17:26:54 -05:00
2026-10-27 17:44:51 -05:00
2026-10-27 18:24:55 -05:00
2026-10-27 18:10:36 -05:00
2026-10-27 18:53:50 -05:00
2026-11-03 22:57:39 -06:00
2026-11-03 15:40:56 -06:00
2026-11-12 20:24:34 -08:00
2026-11-06 07:19:09 -08:00
2026-10-27 14:58:11 -05:00
2026-10-27 19:07:53 -05:00
2026-11-03 14:30:07 -06:00
2026-10-27 16:33:30 -05:00
2026-11-06 16:16:58 -06:00
2026-10-27 20:03:16 -05:00
2026-10-27 14:17:01 -05:00
2026-10-29 03:40:01 -05:00
2026-10-27 21:07:10 -05:00
2026-10-27 14:36:28 -05:00
2026-11-10 12:17:50 -06:00
2026-10-28 10:51:16 -05:00
2026-10-28 10:32:30 -05:00
2026-10-27 19:42:58 -05:00
2026-10-27 21:37:50 -05:00
2026-10-27 15:26:19 -05:00
2026-10-27 17:09:31 -05:00
2026-10-28 09:41:15 -05:00
2026-10-28 08:30:15 -05:00
2026-10-28 08:57:58 -05:00
2026-10-28 07:50:27 -05:00
2026-10-28 07:38:48 -05:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-11-14 18:02:27 -06:00
2026-11-10 14:18:20 -06:00
2026-11-14 20:29:25 -06:00
2026-11-06 14:26:31 -06:00
2026-10-20 11:52:59 -05:00
2026-11-13 22:51:43 -06:00
2026-10-23 11:37:29 -07:00
2026-11-07 16:41:15 -06:00
2026-11-14 20:29:25 -06:00
2026-11-12 17:06:22 -08:00
2026-11-12 22:48:55 -06:00
2026-11-07 08:24:45 -06:00
2026-11-14 20:29:25 -06:00
2026-11-11 09:49:33 -08:00
2026-11-14 18:02:27 -06:00
2026-11-04 07:29:28 -06:00
2026-11-07 08:02:42 -06:00
2026-11-07 14:14:59 -06:00
2026-10-30 15:21:13 -05:00
2026-11-11 06:57:51 -08:00
2026-11-13 21:18:13 -06:00
2026-11-06 21:37:18 -06:00
2026-10-27 16:31:21 -05:00
2026-11-14 20:29:25 -06:00
2026-11-12 02:09:14 -06:00
2026-11-07 09:23:14 -06:00
2026-11-13 14:47:20 -08:00
2026-11-11 21:29:25 +00:00
2026-10-19 08:50:44 -05:00
2026-11-14 20:29:25 -06:00
2026-10-30 09:29:51 -07:00
2026-11-13 14:13:01 -06:00
2026-11-12 19:17:41 -06:00
2026-11-06 22:34:44 -06:00
2026-10-30 16:18:27 -05:00
2026-11-14 18:02:27 -06:00
2026-11-03 17:41:15 -06:00
2026-11-12 05:29:11 -06:00
2026-11-14 18:02:27 -06:00
2026-11-13 17:38:55 -08:00
2026-11-07 02:17:24 -06:00
2026-11-14 20:29:25 -06:00
2026-11-14 18:02:27 -06:00
2026-11-12 20:20:45 -08:00
2026-11-03 13:28:15 -06:00
2026-11-14 18:43:18 -06:00
2026-10-27 11:23:09 -05:00
2026-11-14 20:29:25 -06:00
2026-11-05 16:48:46 -08:00
2026-11-14 20:01:28 -06:00
2026-11-14 18:02:27 -06:00