> On Oct 30, 2019, at 12:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> But ... why bother with partitioning then? To me, the main reasons
> why you might want a partitioned table are
>
> * ability to cheaply add and remove partitions, primarily so that
> you can cheaply do things like "delete the oldest month's data".
>
> * ability to scale past our limits on the physical size of one table
> --- both the hard BlockNumber-based limit, and the performance
> constraints of e.g. vacuuming a very large table.
A third case is data locality. In that case global indexes would be useful for queries that do not correlate will with
hotdata.
> Both of those go out the window with a global index. So you might
> as well just have one table and forget all the overhead.
Partition pruning could still be valuable even with global indexes, provided that we teach vacuum how to clean up
tuplesin an index that point at a partition that has been deleted.