Skip site navigation (1) Skip section navigation (2)

Re: Linux/PostgreSQL scalability issue - problem with 8 cores

From: Jakub Ouhrabka <kuba(at)comgate(dot)cz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Linux/PostgreSQL scalability issue - problem with 8 cores
Date: 2008-01-15 15:45:57
Message-ID: 478CD535.6030004@comgate.cz (view raw or flat)
Thread:
Lists: pgsql-performance
 > Huh.  One transaction truncating a dozen tables?  That would match the
 > sinval trace all right ...

It should be 4 tables - the shown log looks like there were more truncates?

 > You might be throwing the baby out with the bathwater,
 > performance-wise.

Yes, performance was the initial reason to use truncate instead of 
delete many years ago. But today the truncated tables usualy contain 
exactly one row - quick measurements now show that it's faster to issue 
delete instead of truncate in this case.

Again, many thanks for your invaluable advice!

Kuba

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2008-01-15 15:51:04
Subject: Re: Linux/PostgreSQL scalability issue - problem with 8 cores
Previous:From: Tom LaneDate: 2008-01-15 15:20:59
Subject: Re: Linux/PostgreSQL scalability issue - problem with 8 cores

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group