forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f5c014
committed
Allow RECORD and RECORD[] to be specified in function coldeflists.
We can't allow these pseudo-types to be used as table column types,because storing an anonymous record value in a table would resultin data that couldn't be understood by other sessions. However,it seems like there's no harm in allowing the case in a columndefinition list that's specifying what a function-returning-recordreturns. The data involved is all local to the current session,so we should be just as able to resolve its actual tuple type aswe are for the function-returning-record's top-level tuple output.Elvis Pranskevichus, with cosmetic changes by meDiscussion:https://postgr.es/m/11038447.kQ5A9Uj5xi@hammer.magicstack.net1 parent689d15e commit5f5c014
File tree
7 files changed
+70
-19
lines changed- src
- backend
- catalog
- commands
- parser
- include/catalog
- test/regress
- expected
- sql
7 files changed
+70
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
452 | | - | |
| 455 | + | |
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
| |||
507 | 510 | | |
508 | 511 | | |
509 | 512 | | |
510 | | - | |
| 513 | + | |
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| |||
524 | 527 | | |
525 | 528 | | |
526 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
527 | 539 | | |
528 | 540 | | |
529 | 541 | | |
530 | 542 | | |
531 | 543 | | |
532 | 544 | | |
533 | | - | |
| 545 | + | |
534 | 546 | | |
535 | 547 | | |
536 | 548 | | |
537 | 549 | | |
538 | 550 | | |
539 | 551 | | |
540 | 552 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
545 | 561 | | |
546 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
547 | 565 | | |
548 | 566 | | |
549 | 567 | | |
| |||
556 | 574 | | |
557 | 575 | | |
558 | 576 | | |
559 | | - | |
| 577 | + | |
560 | 578 | | |
561 | 579 | | |
562 | 580 | | |
| |||
594 | 612 | | |
595 | 613 | | |
596 | 614 | | |
597 | | - | |
| 615 | + | |
598 | 616 | | |
599 | 617 | | |
600 | 618 | | |
| |||
608 | 626 | | |
609 | 627 | | |
610 | 628 | | |
611 | | - | |
| 629 | + | |
612 | 630 | | |
613 | 631 | | |
614 | 632 | | |
| |||
1074 | 1092 | | |
1075 | 1093 | | |
1076 | 1094 | | |
1077 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1078 | 1102 | | |
1079 | 1103 | | |
1080 | 1104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5505 | 5505 | | |
5506 | 5506 | | |
5507 | 5507 | | |
5508 | | - | |
| 5508 | + | |
5509 | 5509 | | |
5510 | 5510 | | |
5511 | 5511 | | |
| |||
9445 | 9445 | | |
9446 | 9446 | | |
9447 | 9447 | | |
9448 | | - | |
| 9448 | + | |
9449 | 9449 | | |
9450 | 9450 | | |
9451 | 9451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1590 | 1590 | | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | | - | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1594 | 1599 | | |
1595 | | - | |
| 1600 | + | |
| 1601 | + | |
1596 | 1602 | | |
1597 | 1603 | | |
1598 | 1604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
133 | | - | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | | - | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
670 | 681 | | |
671 | 682 | | |
672 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
262 | 268 | | |
263 | 269 | | |
264 | 270 | | |
| |||
0 commit comments
Comments
(0)