forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6cafde1
committed
Add backend-only appendStringInfoStringQuoted
This provides a mechanism to emit literal values in informativemessages, such as query parameters. The new code is more complex thanwhat it replaces, primarily because it wants to be more efficient.It also has the (currently unused) additional optional capability ofspecifying a maximum size to print.The new function lives out of common/stringinfo.c so that frontend usersof that file need not pull in unnecessary multibyte-encoding supportcode.Author: Álvaro Herrera and Alexey Bashtanov, after a suggestion from Andres FreundReviewed-by: Tom LaneDiscussion:https://postgr.es/m/20190920203905.xkv5udsd5dxfs6tr@alap3.anarazel.de1 parent0da33c7 commit6cafde1
File tree
8 files changed
+152
-35
lines changed- src
- backend
- tcop
- utils/mb
- include/mb
- pl/plpgsql/src
- test/regress
- expected
- sql
8 files changed
+152
-35
lines changedLines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
2348 | 2349 |
| |
2349 | 2350 |
| |
2350 | 2351 |
| |
2351 |
| - | |
2352 | 2352 |
| |
2353 | 2353 |
| |
2354 | 2354 |
| |
| |||
2364 | 2364 |
| |
2365 | 2365 |
| |
2366 | 2366 |
| |
2367 |
| - | |
2368 |
| - | |
2369 |
| - | |
2370 |
| - | |
2371 |
| - | |
2372 |
| - | |
2373 |
| - | |
2374 |
| - | |
| 2367 | + | |
2375 | 2368 |
| |
2376 | 2369 |
| |
2377 | 2370 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
|
Lines changed: 86 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + |
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + |
Lines changed: 11 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
| |||
8611 | 8612 |
| |
8612 | 8613 |
| |
8613 | 8614 |
| |
8614 |
| - | |
8615 |
| - | |
8616 |
| - | |
8617 |
| - | |
8618 |
| - | |
8619 |
| - | |
8620 |
| - | |
8621 |
| - | |
8622 |
| - | |
8623 |
| - | |
8624 |
| - | |
8625 |
| - | |
8626 |
| - | |
| 8615 | + | |
| 8616 | + | |
| 8617 | + | |
| 8618 | + | |
| 8619 | + | |
8627 | 8620 |
| |
8628 | 8621 |
| |
8629 | 8622 |
| |
| |||
8661 | 8654 |
| |
8662 | 8655 |
| |
8663 | 8656 |
| |
8664 |
| - | |
8665 |
| - | |
8666 |
| - | |
8667 |
| - | |
8668 |
| - | |
8669 |
| - | |
8670 |
| - | |
8671 |
| - | |
8672 |
| - | |
8673 |
| - | |
8674 |
| - | |
8675 |
| - | |
8676 |
| - | |
| 8657 | + | |
| 8658 | + | |
| 8659 | + | |
| 8660 | + | |
| 8661 | + | |
8677 | 8662 |
| |
8678 | 8663 |
| |
8679 | 8664 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2656 | 2656 |
| |
2657 | 2657 |
| |
2658 | 2658 |
| |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
2659 | 2673 |
| |
2660 | 2674 |
| |
2661 | 2675 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2280 | 2280 |
| |
2281 | 2281 |
| |
2282 | 2282 |
| |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
2283 | 2296 |
| |
2284 | 2297 |
| |
2285 | 2298 |
| |
|
0 commit comments
Comments
(0)