forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd8c3106
committed
Add back SQLValueFunction for SQL keywords
This is equivalent to a revert off193883 andfb32748, with the additionthat the declaration of the SQLValueFunction node needs to gain a coupleof node_attr for query jumbling. The performance impact of removing thefunction call inlining is proving to be too huge for some workloadswhere these are used. A worst-case test case of involving only simpleSELECT queries with a SQL keyword is proving to lead to a reduction of10% in TPS via pgbench and prepared queries on a high-end machine.None of the tests I ran back for this set of changes saw such a hugegap, but Alexander Lakhin and Andres Freund have found that this can benoticeable. Keeping the older performance would mean to do moreinlining in the executor when using COERCE_SQL_SYNTAX for a functionexpression, similarly to what SQLValueFunction does. This requires moreredesign work and there is little time until 16beta1 is released, so fornow reverting the change is the best way forward, bringing back theprevious performance.Bump catalog version.Reported-by: Alexander LakhinDiscussion:https://postgr.es/m/b32bed1b-0746-9b20-1472-4bdc9ca66d52@gmail.com1 parent1d369c9 commitd8c3106
File tree
23 files changed
+473
-270
lines changed- src
- backend
- catalog
- executor
- jit/llvm
- nodes
- optimizer
- path
- util
- parser
- utils/adt
- include
- catalog
- executor
- nodes
- utils
- test/regress
- expected
- sql
- tools/pgindent
23 files changed
+473
-270
lines changedLines changed: 0 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
601 | 601 |
| |
602 | 602 |
| |
603 | 603 |
| |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 |
| - | |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 |
| - | |
627 |
| - | |
628 |
| - | |
629 |
| - | |
630 | 604 |
| |
631 | 605 |
| |
632 | 606 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2213 | 2213 |
| |
2214 | 2214 |
| |
2215 | 2215 |
| |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
2216 | 2227 |
| |
2217 | 2228 |
| |
2218 | 2229 |
| |
|
Lines changed: 73 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
| 458 | + | |
458 | 459 |
| |
459 | 460 |
| |
460 | 461 |
| |
| |||
1305 | 1306 |
| |
1306 | 1307 |
| |
1307 | 1308 |
| |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1308 | 1320 |
| |
1309 | 1321 |
| |
1310 | 1322 |
| |
| |||
2497 | 2509 |
| |
2498 | 2510 |
| |
2499 | 2511 |
| |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
2500 | 2573 |
| |
2501 | 2574 |
| |
2502 | 2575 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1549 | 1549 |
| |
1550 | 1550 |
| |
1551 | 1551 |
| |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1552 | 1558 |
| |
1553 | 1559 |
| |
1554 | 1560 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
| 129 | + | |
129 | 130 |
| |
130 | 131 |
| |
131 | 132 |
| |
|
Lines changed: 28 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
| 213 | + | |
| 214 | + | |
| 215 | + | |
213 | 216 |
| |
214 | 217 |
| |
215 | 218 |
| |
| |||
486 | 489 |
| |
487 | 490 |
| |
488 | 491 |
| |
| 492 | + | |
| 493 | + | |
489 | 494 |
| |
490 | 495 |
| |
491 | 496 |
| |
| |||
930 | 935 |
| |
931 | 936 |
| |
932 | 937 |
| |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
933 | 945 |
| |
934 | 946 |
| |
935 | 947 |
| |
| |||
1167 | 1179 |
| |
1168 | 1180 |
| |
1169 | 1181 |
| |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1170 | 1187 |
| |
1171 | 1188 |
| |
1172 | 1189 |
| |
| |||
1468 | 1485 |
| |
1469 | 1486 |
| |
1470 | 1487 |
| |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1471 | 1492 |
| |
1472 | 1493 |
| |
1473 | 1494 |
| |
| |||
1789 | 1810 |
| |
1790 | 1811 |
| |
1791 | 1812 |
| |
1792 |
| - | |
1793 |
| - | |
1794 |
| - | |
1795 |
| - | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
1796 | 1817 |
| |
1797 | 1818 |
| |
1798 | 1819 |
| |
| |||
2008 | 2029 |
| |
2009 | 2030 |
| |
2010 | 2031 |
| |
| 2032 | + | |
2011 | 2033 |
| |
2012 | 2034 |
| |
2013 | 2035 |
| |
| |||
2836 | 2858 |
| |
2837 | 2859 |
| |
2838 | 2860 |
| |
| 2861 | + | |
2839 | 2862 |
| |
2840 | 2863 |
| |
2841 | 2864 |
| |
| |||
3797 | 3820 |
| |
3798 | 3821 |
| |
3799 | 3822 |
| |
| 3823 | + | |
3800 | 3824 |
| |
3801 | 3825 |
| |
3802 | 3826 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4606 | 4606 |
| |
4607 | 4607 |
| |
4608 | 4608 |
| |
| 4609 | + | |
4609 | 4610 |
| |
4610 | 4611 |
| |
4611 | 4612 |
| |
|
Lines changed: 32 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
415 | 421 |
| |
416 | 422 |
| |
417 | 423 |
| |
| |||
560 | 566 |
| |
561 | 567 |
| |
562 | 568 |
| |
563 |
| - | |
564 |
| - | |
| 569 | + | |
| 570 | + | |
565 | 571 |
| |
566 | 572 |
| |
567 | 573 |
| |
| |||
606 | 612 |
| |
607 | 613 |
| |
608 | 614 |
| |
609 |
| - | |
610 |
| - | |
611 |
| - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
612 | 619 |
| |
613 | 620 |
| |
614 | 621 |
| |
| |||
754 | 761 |
| |
755 | 762 |
| |
756 | 763 |
| |
757 |
| - | |
758 |
| - | |
| 764 | + | |
| 765 | + | |
759 | 766 |
| |
760 | 767 |
| |
761 | 768 |
| |
| |||
1202 | 1209 |
| |
1203 | 1210 |
| |
1204 | 1211 |
| |
| 1212 | + | |
1205 | 1213 |
| |
1206 | 1214 |
| |
1207 | 1215 |
| |
| |||
3243 | 3251 |
| |
3244 | 3252 |
| |
3245 | 3253 |
| |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
3246 | 3271 |
| |
3247 | 3272 |
| |
3248 | 3273 |
| |
|
0 commit comments
Comments
(0)