forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf736e18
committed
Standardize usages of appendStringInfo and appendPQExpBuffer
Fix a few places that were using appendStringInfo() when they should havebeen using appendStringInfoString(). Also some cases ofappendPQExpBuffer() that would have been better suited to useappendPQExpBufferChar(), and finally, some places that usedappendPQExpBuffer() when appendPQExpBufferStr() would have suited better.There are no bugs are being fixed here. The aim is just to make the codeuse the most optimal function for the job.All the code being changed here is new to PG14. It makes sense to fixthese before we branch for PG15. There are a few other places that wecould fix, but those cases are older code so fixing those seems lessworthwhile as it may cause unnecessary back-patching pain in the future.Author: Hou ZhijieDiscussion:https://postgr.es/m/OS0PR01MB5716732158B1C4142C6FE375943D9@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parent8279f68 commitf736e18
File tree
4 files changed
+9
-9
lines changed- src
- backend/access
- brin
- heap
- bin
- pg_amcheck
- psql
4 files changed
+9
-9
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3084 | 3084 |
| |
3085 | 3085 |
| |
3086 | 3086 |
| |
3087 |
| - | |
| 3087 | + | |
3088 | 3088 |
| |
3089 | 3089 |
| |
3090 | 3090 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
783 | 783 |
| |
784 | 784 |
| |
785 | 785 |
| |
786 |
| - | |
| 786 | + | |
787 | 787 |
| |
788 |
| - | |
| 788 | + | |
789 | 789 |
| |
790 | 790 |
| |
791 | 791 |
| |
792 | 792 |
| |
793 | 793 |
| |
794 | 794 |
| |
795 |
| - | |
| 795 | + | |
796 | 796 |
| |
797 |
| - | |
| 797 | + | |
798 | 798 |
| |
799 | 799 |
| |
800 | 800 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
847 |
| - | |
| 847 | + | |
848 | 848 |
| |
849 | 849 |
| |
850 | 850 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2934 | 2934 |
| |
2935 | 2935 |
| |
2936 | 2936 |
| |
2937 |
| - | |
| 2937 | + | |
2938 | 2938 |
| |
2939 | 2939 |
| |
2940 | 2940 |
| |
| |||
2954 | 2954 |
| |
2955 | 2955 |
| |
2956 | 2956 |
| |
2957 |
| - | |
| 2957 | + | |
2958 | 2958 |
| |
2959 | 2959 |
| |
2960 | 2960 |
| |
| |||
3577 | 3577 |
| |
3578 | 3578 |
| |
3579 | 3579 |
| |
3580 |
| - | |
| 3580 | + | |
3581 | 3581 |
| |
3582 | 3582 |
| |
3583 | 3583 |
| |
|
0 commit comments
Comments
(0)