Re: [PERFORM] Hot Issue

2008-07-02 Thread Tom Lane
"Gauri Kanekar" <[EMAIL PROTECTED]> writes: > Better HOT performance means 1st stat showed most of the updated tuples > getting hot. > But the 2nd stat showed that most of the updated tuples are NOT getting hot. Well, as was noted upthread, you'd want to reduce the table fillfactor (not index

Re: [PERFORM] Hot Issue

2008-07-02 Thread Gauri Kanekar
2nd count include the 1st count also. We have not restarted the DB since postgres 8.3 have been released. Better HOT performance means 1st stat showed most of the updated tuples getting hot. But the 2nd stat showed that most of the updated tuples are NOT getting hot. On Wed, Jul 2, 2008 at

Re: [PERFORM] Hot Issue

2008-07-02 Thread Tom Lane
"Jonah H. Harris" <[EMAIL PROTECTED]> writes: > On Wed, Jul 2, 2008 at 9:44 AM, Gauri Kanekar >> Is there a way to check if the page is fill and the update is going on a new >> page ?? > IIRC, I don't think so. You could make your application check to see if the page part of a row's CTID changes

Re: [PERFORM] Hot Issue

2008-07-02 Thread Jonah H. Harris
On Wed, Jul 2, 2008 at 9:44 AM, Gauri Kanekar <[EMAIL PROTECTED]> wrote: > ok.. But we have set fill_factor = 80 for all the indexes on table1. You need fill factor for the heap table, not the index. > Is there a way to check if the page is fill and the update is going on a new > page ?? IIRC, I

Re: [PERFORM] Hot Issue

2008-07-02 Thread Gauri Kanekar
ok.. But we have set fill_factor = 80 for all the indexes on table1. Is there a way to check if the page is fill and the update is going on a new page ?? On Wed, Jul 2, 2008 at 6:59 PM, Jonah H. Harris <[EMAIL PROTECTED]> wrote: > On Wed, Jul 2, 2008 at 9:11 AM, Gauri Kanekar > <[EMAIL PROTECT

Re: [PERFORM] Hot Issue

2008-07-02 Thread Devrim GÜNDÜZ
On Wed, 2008-07-02 at 18:41 +0530, Gauri Kanekar wrote: > hot have a limitation that it do not work if, the index column is > updated. It is one of the conditions -- it also needs to fit in the same block. Regards, -- Devrim GÜNDÜZ devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.or

Re: [PERFORM] Hot Issue

2008-07-02 Thread Jonah H. Harris
On Wed, Jul 2, 2008 at 9:11 AM, Gauri Kanekar <[EMAIL PROTECTED]> wrote: > hot have a limitation that it do not work if, the index column is updated. > But that not the case over here. Another limitation is that HOT won't work if there's not enough space to fit the update on the same page. -- Jo

Re: [PERFORM] Hot Issue

2008-07-02 Thread Gauri Kanekar
How does it indicate if the entries qualify for hot update ?? hot have a limitation that it do not work if, the index column is updated. But that not the case over here. On Wed, Jul 2, 2008 at 6:38 PM, Devrim GÜNDÜZ <[EMAIL PROTECTED]> wrote: > On Wed, 2008-07-02 at 18:01 +0530, Gauri Kanekar

Re: [PERFORM] Hot Issue

2008-07-02 Thread Devrim GÜNDÜZ
On Wed, 2008-07-02 at 18:01 +0530, Gauri Kanekar wrote: > Checked out the performance of Hot on 30th June : > > relname n_tup_ins n_tup_upd n_tup_del > n_tup_hot_upd > n_live_tup n_dead_tup *table1* *15509156* *2884653* *0* *2442823* > * > 15509158* *68046* table2 434585

Re: [PERFORM] Hot Issue

2008-07-02 Thread Gauri Kanekar
No, Vacuum Full was not done, but auto_vacuum did click onto table1. No cluster. On Wed, Jul 2, 2008 at 6:10 PM, Jonah H. Harris <[EMAIL PROTECTED]> wrote: > On Wed, Jul 2, 2008 at 8:31 AM, Gauri Kanekar > <[EMAIL PROTECTED]> wrote: > > Performance of Hot was much better on 30June as compared t

Re: [PERFORM] Hot Issue

2008-07-02 Thread Jonah H. Harris
On Wed, Jul 2, 2008 at 8:31 AM, Gauri Kanekar <[EMAIL PROTECTED]> wrote: > Performance of Hot was much better on 30June as compared to 2nd July. Did you happen to VACUUM FULL or CLUSTER anything? -- Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732

[PERFORM] Hot Issue

2008-07-02 Thread Gauri Kanekar
Hi all, We have upgraded our database server to postgres 8.3.1 on 28th June. Checked out the performance of Hot on 30th June : relname n_tup_ins n_tup_upd n_tup_del n_tup_hot_upd n_live_tup n_dead_tup *table1* *15509156* *2884653* *0* *2442823* * 15509158* *68046* ta