Repository navigation
Commit 11938ea
fix(relay): T3 Connect links no longer fail on colliding prepared statements
Since #9386 added transactions to managed endpoint provisioning, about 40%
of provisions fail with `bind message supplies 5 parameters, but prepared
statement "effectN" requires M`. @effect/sql-pg rc.115 names prepared
statements from a per-connection counter, so behind Hyperdrive's
transaction-mode pool a Bind inside a transaction can reach another
request's statement (Effect-TS/effect#8320).
Pass `prepare: false` to the relay's PgClient so every statement is
unnamed. Alchemy's Drizzle.Postgres only forwards url and ssl, so the
existing alchemy patch gains an optional PgClient options argument.
Provisioning failures without an underlying error now carry a `reason`
(claim-lost, endpoint-mismatch, invalid-tunnel-response) so their spans
say why the stage failed.
Fixes #14070
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 2a45557 commit 11938ea
5 files changed
Lines changed: 115 additions & 4 deletions
File tree
- infra/relay/src
- environments
- patches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
| 1283 | + | |
1283 | 1284 | | |
1284 | 1285 | | |
1285 | 1286 | | |
| |||
1336 | 1337 | | |
1337 | 1338 | | |
1338 | 1339 | | |
| 1340 | + | |
1339 | 1341 | | |
1340 | 1342 | | |
1341 | 1343 | | |
| |||
1391 | 1393 | | |
1392 | 1394 | | |
1393 | 1395 | | |
| 1396 | + | |
1394 | 1397 | | |
1395 | 1398 | | |
1396 | 1399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
543 | 553 | | |
544 | 554 | | |
545 | 555 | | |
| 556 | + | |
546 | 557 | | |
547 | 558 | | |
548 | 559 | | |
| |||
609 | 620 | | |
610 | 621 | | |
611 | 622 | | |
| 623 | + | |
612 | 624 | | |
613 | 625 | | |
614 | 626 | | |
| |||
995 | 1007 | | |
996 | 1008 | | |
997 | 1009 | | |
| 1010 | + | |
998 | 1011 | | |
999 | 1012 | | |
1000 | 1013 | | |
| |||
1030 | 1043 | | |
1031 | 1044 | | |
1032 | 1045 | | |
| 1046 | + | |
1033 | 1047 | | |
1034 | 1048 | | |
1035 | 1049 | | |
| |||
1090 | 1104 | | |
1091 | 1105 | | |
1092 | 1106 | | |
| 1107 | + | |
1093 | 1108 | | |
1094 | 1109 | | |
1095 | 1110 | | |
| |||
1162 | 1177 | | |
1163 | 1178 | | |
1164 | 1179 | | |
| 1180 | + | |
1165 | 1181 | | |
1166 | 1182 | | |
1167 | 1183 | | |
| |||
1192 | 1208 | | |
1193 | 1209 | | |
1194 | 1210 | | |
| 1211 | + | |
1195 | 1212 | | |
1196 | 1213 | | |
1197 | 1214 | | |
| |||
1242 | 1259 | | |
1243 | 1260 | | |
1244 | 1261 | | |
| 1262 | + | |
1245 | 1263 | | |
1246 | 1264 | | |
1247 | 1265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
1 | 48 | | |
2 | 49 | | |
3 | 50 | | |
| |||
11 | 58 | | |
12 | 59 | | |
13 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
14 | 98 | | |
15 | 99 | | |
16 | 100 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments