Commit 7a46bb0
Merge #159308
159308: workload/schemachange: gate TRUNCATE FK error codes by version r=spilchen a=spilchen
In mixed-version clusters, executing TRUNCATE on a table with foreign key references can result in inconsistent error codes depending on the node version.
- Nodes prior to v26.1 return pgcode.Uncategorized.
- Nodes running v26.1+ return pgcode.FeatureNotSupported (introduced in #154382).
This change introduces version gating to distinguish between the two cases and handle the returned error appropriately based on the active cluster version.
Resolves: #159034
Resolves: #159243
Epic: none
Release note: none
Co-authored-by: Matt Spilchen <[email protected]>1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5729 | 5729 | | |
5730 | 5730 | | |
5731 | 5731 | | |
5732 | | - | |
| 5732 | + | |
| 5733 | + | |
| 5734 | + | |
| 5735 | + | |
| 5736 | + | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
| 5740 | + | |
| 5741 | + | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
5733 | 5745 | | |
5734 | 5746 | | |
5735 | 5747 | | |
| |||
0 commit comments