forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3a58176
committed
Restrict Datum sort optimization to byval types only
91e9e89 modified nodeSort.c so that it used datum sorts when thetargetlist of the outer node contained only a single column. That commitfailed to recognise that the Datum returned by tuplesort_getdatum() mustbe pfree'd when the type is a byref type. Ronan Dunklau did originallypropose the patch with that restriction, but that, probably through my ownfault, got lost during further development work.Due to the timing of this report (PG15 RC1 is almost out the door), let'sjust restrict the datum sort optimization to apply for byval types only.We might want to look harder into making this work for byref types inPG16.Reported-by: Önder KalacıDiagnosis-by: Tom LaneDiscussion:https://postgr.es/m/CACawEhVxe0ufR26UcqtU7GYGRuubq3p6ZWPGXL4cxy_uexpAAQ@mail.gmail.comBackpatch-through: 15, where91e9e89 was introduced.1 parent2a66b9b commit3a58176
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| 223 | + | |
223 | 224 |
| |
224 | 225 |
| |
225 | 226 |
| |
| |||
274 | 275 |
| |
275 | 276 |
| |
276 | 277 |
| |
| 278 | + | |
| 279 | + | |
277 | 280 |
| |
278 |
| - | |
| 281 | + | |
279 | 282 |
| |
280 | 283 |
| |
281 |
| - | |
| 284 | + | |
282 | 285 |
| |
283 | 286 |
| |
284 | 287 |
| |
|
0 commit comments
Comments
(0)