Re: [PERFORM] Insert only tables and vacuum performance

2004-04-30 Thread Joseph Shraibman
Tom Lane wrote:
Joseph Shraibman [EMAIL PROTECTED] writes:
I have a table that is never updated, only INSERTED into. Is there a way 
I can prevent vacuum wasting time on this table

What makes you think vacuum is wasting much time on this table?  AFAICS
it will only update any unfixed hint bits ...
			regards, tom lane
INFO:  elog: found 0 removable, 12869411 nonremovable row versions in 
196195 pages
DETAIL:  0 dead row versions cannot be removed yet.
There were 5 unused item pointers.
0 pages are entirely empty.
CPU 31.61s/4.53u sec elapsed 1096.83 sec.

It took 1096.83 seconds, and what did it accomplish?  And what are hint 
bits?

---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


Re: [PERFORM] Insert only tables and vacuum performance

2004-04-29 Thread Tom Lane
Joseph Shraibman [EMAIL PROTECTED] writes:
 I have a table that is never updated, only INSERTED into. Is there a way 
 I can prevent vacuum wasting time on this table

What makes you think vacuum is wasting much time on this table?  AFAICS
it will only update any unfixed hint bits ...

regards, tom lane

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


Re: [PERFORM] Insert only tables and vacuum performance

2004-04-29 Thread Joseph Shraibman
Joseph Shraibman wrote:
I have a table that is never updated, only INSERTED into. Is there a way 
I can prevent vacuum wasting time on this table besides vacuuming each 
table in the db by itself and omitting this table?

How feasable would it be to have a marker somewhere in pg that is 
updated since last vacuum that would be cleared when vacuum runs, and 
if set vacuum will ignore that table?
Or even better an offset into the datatable for the earliest deleted 
row, so if you have a table where you update the row shortly after 
insert and then never touch it vacuum can skip most of the table 
(inserts are done at the end of the table, right?)

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]


Re: [PERFORM] Insert only tables and vacuum performance

2004-04-29 Thread Rod Taylor
 Or even better an offset into the datatable for the earliest deleted 
 row, so if you have a table where you update the row shortly after 
 insert and then never touch it vacuum can skip most of the table 
 (inserts are done at the end of the table, right?)

Inserts are done at the end of the table as a last resort. But anyway,
how do you handle a rolled back insert?



---(end of broadcast)---
TIP 8: explain analyze is your friend