Re: [HACKERS] HOT updates in index-less tables

2010-11-17 Thread Merlin Moncure
On Sun, Nov 14, 2010 at 1:12 PM, Heikki Linnakangas heikki.linnakan...@enterprisedb.com wrote: On 14.11.2010 00:29, Robert Haas wrote: On Sat, Nov 13, 2010 at 12:13 PM, Tom Lanet...@sss.pgh.pa.us  wrote: Hannu Krosingha...@2ndquadrant.com  writes: On Sat, 2010-11-13 at 10:51 -0500, Tom Lane

Re: [HACKERS] HOT updates in index-less tables

2010-11-14 Thread Heikki Linnakangas
On 14.11.2010 00:29, Robert Haas wrote: On Sat, Nov 13, 2010 at 12:13 PM, Tom Lanet...@sss.pgh.pa.us wrote: Hannu Krosingha...@2ndquadrant.com writes: On Sat, 2010-11-13 at 10:51 -0500, Tom Lane wrote: If a table has no indexes, we will always decide that any same-page update operation is a

[HACKERS] HOT updates in index-less tables

2010-11-13 Thread Tom Lane
If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't modifying any indexed columns. But is there any benefit to doing so? I don't see one offhand, and it has a downside: we're very likely to encounter broken HOT chains if

Re: [HACKERS] HOT updates in index-less tables

2010-11-13 Thread Hannu Krosing
On Sat, 2010-11-13 at 10:51 -0500, Tom Lane wrote: If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't modifying any indexed columns. But is there any benefit to doing so? If we do the in-page mini vacuum even without

Re: [HACKERS] HOT updates in index-less tables

2010-11-13 Thread Tom Lane
Hannu Krosing ha...@2ndquadrant.com writes: On Sat, 2010-11-13 at 10:51 -0500, Tom Lane wrote: If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't modifying any indexed columns. But is there any benefit to doing so?

Re: [HACKERS] HOT updates in index-less tables

2010-11-13 Thread Hannu Krosing
On Sat, 2010-11-13 at 12:13 -0500, Tom Lane wrote: Hannu Krosing ha...@2ndquadrant.com writes: On Sat, 2010-11-13 at 10:51 -0500, Tom Lane wrote: If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't modifying any

Re: [HACKERS] HOT updates in index-less tables

2010-11-13 Thread Tom Lane
Hannu Krosing ha...@2ndquadrant.com writes: On Sat, 2010-11-13 at 12:13 -0500, Tom Lane wrote: AFAICS we do: heap_update marks the page as prunable whether it's a HOT update or not. The only difference between treating the update as HOT vs not-HOT is that if there was more than one HOT

Re: [HACKERS] HOT updates in index-less tables

2010-11-13 Thread Robert Haas
On Sat, Nov 13, 2010 at 12:13 PM, Tom Lane t...@sss.pgh.pa.us wrote: Hannu Krosing ha...@2ndquadrant.com writes: On Sat, 2010-11-13 at 10:51 -0500, Tom Lane wrote: If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't