forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitebf76f2
committed
Add TupleDescGetDefault()
This unifies some repetitive code.Note: I didn't push the "not found" error message into the newfunction, even though all existing callers would be able to make useof it. Using the existing error handling as-is would probably requireexposing the Relation type via tupdesc.h, which doesn't seemdesirable. (Or even if we changed it to just report the OID, it wouldinject the concept of a relation containing the tuple descriptor intotupdesc.h, which might be a layering violation. Perhaps some furtherimprovements could be considered here separately.)Discussion:https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da%40eisentraut.org1 parent9dce220 commitebf76f2
File tree
5 files changed
+32
-41
lines changed- src
- backend
- access/common
- commands
- parser
- rewrite
- include/access
5 files changed
+32
-41
lines changedLines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
927 | 927 |
| |
928 | 928 |
| |
929 | 929 |
| |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + |
Lines changed: 2 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2795 | 2795 |
| |
2796 | 2796 |
| |
2797 | 2797 |
| |
2798 |
| - | |
| 2798 | + | |
2799 | 2799 |
| |
2800 |
| - | |
2801 |
| - | |
2802 |
| - | |
2803 |
| - | |
2804 |
| - | |
2805 |
| - | |
2806 |
| - | |
2807 |
| - | |
2808 |
| - | |
2809 |
| - | |
2810 |
| - | |
2811 |
| - | |
2812 |
| - | |
2813 |
| - | |
| 2800 | + | |
2814 | 2801 |
| |
2815 | 2802 |
| |
2816 | 2803 |
| |
|
Lines changed: 2 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1358 | 1358 |
| |
1359 | 1359 |
| |
1360 | 1360 |
| |
1361 |
| - | |
1362 |
| - | |
| 1361 | + | |
1363 | 1362 |
| |
1364 | 1363 |
| |
1365 | 1364 |
| |
1366 |
| - | |
1367 |
| - | |
1368 |
| - | |
1369 |
| - | |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
| 1365 | + | |
1375 | 1366 |
| |
1376 | 1367 |
| |
1377 | 1368 |
| |
|
Lines changed: 1 addition & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1246 | 1246 |
| |
1247 | 1247 |
| |
1248 | 1248 |
| |
1249 |
| - | |
1250 |
| - | |
1251 |
| - | |
1252 |
| - | |
1253 |
| - | |
1254 |
| - | |
1255 |
| - | |
1256 |
| - | |
1257 |
| - | |
1258 |
| - | |
1259 |
| - | |
1260 |
| - | |
1261 |
| - | |
1262 |
| - | |
1263 |
| - | |
| 1249 | + | |
1264 | 1250 |
| |
1265 | 1251 |
| |
1266 | 1252 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| 154 | + | |
| 155 | + | |
154 | 156 |
|
0 commit comments
Comments
(0)