forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit61fa6ca
committed
Document autoanalyze limitations for partitioned tables
When dealing with partitioned tables, counters for partitioned tablesare not updated when modifying child tables. This means autoanalyze maynot update optimizer statistics for the parent relations, which canresult in poor plans for some queries.It's worth documenting this limitation, so that people are aware of itand can take steps to mitigate it (e.g. by setting up a script executingANALYZE regularly).Backpatch to v10. Older branches are affected too, of couse, but we nolonger maintain those.Author: Justin PryzbyReviewed-by: Zhihong Yu, Tomas VondraBackpatch-through: 10Discussion:https://postgr.es/m/20210913035409.GA10647%40telsasoft.com1 parente26114c commit61fa6ca
2 files changed
+58
-3
lines changedLines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
293 | 302 |
| |
294 | 303 |
| |
295 | 304 |
| |
| |||
347 | 356 |
| |
348 | 357 |
| |
349 | 358 |
| |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
350 | 372 |
| |
351 | 373 |
| |
352 | 374 |
| |
| |||
819 | 841 |
| |
820 | 842 |
| |
821 | 843 |
| |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
822 | 851 |
| |
823 | 852 |
| |
824 | 853 |
| |
|
Lines changed: 29 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 |
| - | |
267 |
| - | |
268 |
| - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
269 | 295 |
| |
270 | 296 |
| |
271 | 297 |
| |
|
0 commit comments
Comments
(0)