forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1ea3963
committed
Improve logging of bad parameter values in BIND messages.
Since commitba79cb5, values of bind parameters have been loggedduring errors in extended query mode. However, we only did that afterwe'd collected and converted all the parameter values, thus failing tooffer any useful localization of invalid-parameter problems. Add aseparate callback that's used during parameter collection, and have itprint the parameter number, along with the input string if text inputformat is used.Justin Pryzby and Tom LaneDiscussion:https://postgr.es/m/20210104170939.GH9712@telsasoft.comDiscussion:https://postgr.es/m/CANfkH5k-6nNt-4cSv1vPB80nq2BZCzhFVR5O4VznYbsX0wZmow@mail.gmail.com1 parent0150616 commit1ea3963
File tree
2 files changed
+107
-3
lines changed- src
- backend/tcop
- bin/pgbench/t
2 files changed
+107
-3
lines changedLines changed: 91 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 |
| |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 |
| |
107 | 118 |
| |
108 | 119 |
| |
| |||
183 | 194 |
| |
184 | 195 |
| |
185 | 196 |
| |
| 197 | + | |
186 | 198 |
| |
187 | 199 |
| |
188 | 200 |
| |
| |||
1698 | 1710 |
| |
1699 | 1711 |
| |
1700 | 1712 |
| |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1701 | 1726 |
| |
1702 | 1727 |
| |
1703 | 1728 |
| |
| |||
1711 | 1736 |
| |
1712 | 1737 |
| |
1713 | 1738 |
| |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
1714 | 1742 |
| |
1715 | 1743 |
| |
1716 | 1744 |
| |
| |||
1764 | 1792 |
| |
1765 | 1793 |
| |
1766 | 1794 |
| |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
1767 | 1798 |
| |
1768 | 1799 |
| |
| 1800 | + | |
| 1801 | + | |
1769 | 1802 |
| |
1770 | 1803 |
| |
1771 | 1804 |
| |
| |||
1855 | 1888 |
| |
1856 | 1889 |
| |
1857 | 1890 |
| |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1858 | 1894 |
| |
1859 | 1895 |
| |
1860 |
| - | |
1861 |
| - | |
| 1896 | + | |
| 1897 | + | |
1862 | 1898 |
| |
1863 | 1899 |
| |
1864 | 1900 |
| |
| |||
1872 | 1908 |
| |
1873 | 1909 |
| |
1874 | 1910 |
| |
1875 |
| - | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
1876 | 1915 |
| |
1877 | 1916 |
| |
1878 | 1917 |
| |
| |||
2413 | 2452 |
| |
2414 | 2453 |
| |
2415 | 2454 |
| |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2416 | 2504 |
| |
2417 | 2505 |
| |
2418 | 2506 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
392 | 408 |
| |
393 | 409 |
| |
394 | 410 |
| |
|
0 commit comments
Comments
(0)