pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jakub Ouhrabka <kuba@comgate.cz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Linux/PostgreSQL scalability issue - problem with 8 cores
Date: Tue, 15 Jan 2008 13:09:18 +0100
Message-ID: <478CA26E.9040105@comgate.cz> (raw)
In-Reply-To: <13894.1200324134@sss.pgh.pa.us>
References: <flii57$748$1@news.hub.org>
	<7083.1199379570@sss.pgh.pa.us>
	<477D1D59.7050002@comgate.cz>
	<4782063C.7070105@comgate.cz>
	<26502.1199745090@sss.pgh.pa.us>
	<4782AB4D.8010009@comgate.cz>
	<27655.1199750492@sss.pgh.pa.us>
	<47836A4C.5080707@comgate.cz>
	<10713.1199813111@sss.pgh.pa.us>
	<47874EE8.2050406@comgate.cz>
	<12997.1200063940@sss.pgh.pa.us>
	<478B4BB9.4030208@comgate.cz>
	<13894.1200324134@sss.pgh.pa.us>

Hi Tom,

 > I can think of three things that might be producing this:

we've found it: TRUNCATE

We'll try to eliminate use of TRUNCATE and the periodical spikes should 
go off. There will still be possibility of spikes because of database 
creation etc - we'll try to handle this by issuing trivial commands from 
idle backeds and in longer run to decrease the number of 
backends/databases running. This is the way to go, right?

One more question: is it ok to do mass regexp update of pg_proc.prosrc 
changing TRUNCATEs to DELETEs? Anything we should be aware of? Sure 
we'll do our own testing but in case you see any obvious downsides...

Many thanks for your guidance!

Kuba



view thread (30+ messages)  latest in thread

Message-ID: <478CA26E.9040105@comgate.cz>
Permalink:  ../478CA26E.9040105@comgate.cz/
Also on:    postgresql.org/message-id/478CA26E.9040105@comgate.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: kuba@comgate.cz, tgl@sss.pgh.pa.us
  Subject: Re: Linux/PostgreSQL scalability issue - problem with 8 cores
  In-Reply-To: <478CA26E.9040105@comgate.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox