forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteb88926
committed
Avoid performing encoding conversion on command tag strings during EndCommand.
Since all current and foreseeable future command tags will be pure ASCII,there is no need to do conversion on them. This saves a few cycles and alsoavoids polluting otherwise-pristine subtransaction memory contexts, whichis the cause of the backend memory leak exhibited in bug #5302. (Somedaywe'll probably want to have a better method of determining whethersubtransaction contexts need to be kept around, but today is not that day.)Backpatch to 8.0. The cycle-shaving aspect of this would work in 7.4too, but without subtransactions the memory-leak aspect doesn't apply,so it doesn't seem worth touching 7.4.1 parent07be293 commiteb88926
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
| |||
183 | 187 |
| |
184 | 188 |
| |
185 | 189 |
| |
186 |
| - | |
| 190 | + | |
187 | 191 |
| |
188 | 192 |
| |
189 | 193 |
| |
|
0 commit comments
Comments
(0)