forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0032a54
committed
Remove PQsendQuery support in pipeline mode
The extended query protocol implementation I added in commitacb7e4e has bugs when used in pipeline mode. Rather than spendmore time trying to fix it, remove that code and make the function relyon simple query protocol only, meaning it can no longer be used inpipeline mode.Users can easily change their applications to use PQsendQueryParamsinstead. We leave PQsendQuery in place for Postgres 14, just in casesomebody is using it and has not hit the mentioned bugs; but we shouldrecommend that it not be used.Backpatch to 15.Per bug report from Gabriele Varrazzo.Discussion:https://postgr.es/m/CA+mi_8ZGSQNmW6-mk_iSR4JZB_LJ4ww3suOF+1vGNs3MrLsv4g@mail.gmail.com1 parentd11a41a commit0032a54
File tree
4 files changed
+41
-115
lines changed- doc/src/sgml
- src
- interfaces/libpq
- test/modules/libpq_pipeline
4 files changed
+41
-115
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4601 | 4601 |
| |
4602 | 4602 |
| |
4603 | 4603 |
| |
4604 |
| - | |
4605 |
| - | |
| 4604 | + | |
4606 | 4605 |
| |
4607 | 4606 |
| |
4608 | 4607 |
| |
| |||
5056 | 5055 |
| |
5057 | 5056 |
| |
5058 | 5057 |
| |
| 5058 | + | |
5059 | 5059 |
| |
5060 | 5060 |
| |
5061 | 5061 |
| |
| |||
5067 | 5067 |
| |
5068 | 5068 |
| |
5069 | 5069 |
| |
| 5070 | + | |
| 5071 | + | |
5070 | 5072 |
| |
5071 | 5073 |
| |
5072 | 5074 |
| |
| |||
5095 | 5097 |
| |
5096 | 5098 |
| |
5097 | 5099 |
| |
5098 |
| - | |
5099 |
| - | |
| 5100 | + | |
5100 | 5101 |
| |
5101 | 5102 |
| |
5102 | 5103 |
| |
|
Lines changed: 23 additions & 94 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1433 | 1433 |
| |
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 |
| - | |
1437 | 1436 |
| |
1438 | 1437 |
| |
1439 | 1438 |
| |
| |||
1446 | 1445 |
| |
1447 | 1446 |
| |
1448 | 1447 |
| |
1449 |
| - | |
1450 |
| - | |
1451 |
| - | |
1452 | 1448 |
| |
1453 | 1449 |
| |
1454 |
| - | |
1455 |
| - | |
1456 |
| - | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1457 | 1454 |
| |
1458 | 1455 |
| |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1459 | 1460 |
| |
1460 |
| - | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1461 | 1465 |
| |
1462 |
| - | |
1463 |
| - | |
1464 |
| - | |
1465 |
| - | |
1466 |
| - | |
1467 |
| - | |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
1472 |
| - | |
1473 |
| - | |
1474 |
| - | |
1475 |
| - | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
1476 | 1469 |
| |
1477 |
| - | |
1478 |
| - | |
1479 |
| - | |
1480 |
| - | |
1481 |
| - | |
1482 |
| - | |
1483 |
| - | |
1484 |
| - | |
1485 |
| - | |
1486 |
| - | |
1487 |
| - | |
1488 |
| - | |
1489 |
| - | |
1490 |
| - | |
1491 |
| - | |
1492 |
| - | |
1493 |
| - | |
1494 |
| - | |
1495 |
| - | |
1496 |
| - | |
1497 |
| - | |
1498 |
| - | |
1499 |
| - | |
1500 |
| - | |
1501 |
| - | |
1502 |
| - | |
1503 |
| - | |
1504 |
| - | |
1505 |
| - | |
1506 |
| - | |
1507 |
| - | |
1508 |
| - | |
1509 |
| - | |
1510 |
| - | |
1511 |
| - | |
1512 |
| - | |
1513 | 1470 |
| |
1514 |
| - | |
1515 |
| - | |
1516 |
| - | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1517 | 1475 |
| |
1518 | 1476 |
| |
1519 | 1477 |
| |
1520 | 1478 |
| |
1521 | 1479 |
| |
1522 |
| - | |
| 1480 | + | |
1523 | 1481 |
| |
1524 | 1482 |
| |
1525 | 1483 |
| |
1526 | 1484 |
| |
1527 | 1485 |
| |
1528 |
| - | |
1529 |
| - | |
1530 |
| - | |
1531 |
| - | |
1532 |
| - | |
1533 |
| - | |
1534 |
| - | |
1535 |
| - | |
1536 |
| - | |
1537 |
| - | |
1538 |
| - | |
1539 |
| - | |
1540 |
| - | |
1541 | 1486 |
| |
1542 | 1487 |
| |
1543 | 1488 |
| |
1544 | 1489 |
| |
1545 |
| - | |
1546 | 1490 |
| |
1547 | 1491 |
| |
1548 | 1492 |
| |
| |||
2246 | 2190 |
| |
2247 | 2191 |
| |
2248 | 2192 |
| |
2249 |
| - | |
2250 |
| - | |
2251 |
| - | |
2252 |
| - | |
2253 |
| - | |
2254 |
| - | |
2255 |
| - | |
2256 |
| - | |
2257 |
| - | |
2258 |
| - | |
2259 |
| - | |
2260 |
| - | |
2261 |
| - | |
2262 |
| - | |
2263 |
| - | |
2264 |
| - | |
2265 | 2193 |
| |
2266 | 2194 |
| |
2267 | 2195 |
| |
| |||
2977 | 2905 |
| |
2978 | 2906 |
| |
2979 | 2907 |
| |
2980 |
| - | |
2981 |
| - | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
2982 | 2911 |
| |
2983 | 2912 |
| |
2984 | 2913 |
| |
|
Lines changed: 1 addition & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
285 |
| - | |
286 |
| - | |
287 | 285 |
| |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
| 286 | + | |
303 | 287 |
| |
304 | 288 |
| |
305 | 289 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
109 | 121 |
| |
110 | 122 |
| |
111 | 123 |
| |
|
0 commit comments
Comments
(0)