pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frank Dekervel <frank.dekervel@smartlounge.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: "append" takes a lot of time in a query
Date: Fri, 09 May 2008 10:12:46 -0400
Message-ID: <13354.1210342366@sss.pgh.pa.us> (raw)
In-Reply-To: <200805091009.46893.frank.dekervel@smartlounge.be>
References: <200805091009.46893.frank.dekervel@smartlounge.be>

Frank Dekervel <frank.dekervel@smartlounge.be> writes:
> this turns this query in an append of a whole lot of seq scan/ index scan's. 
> These scans are predictably quick, but the "append" takes 5 seconds (and the 
> numbers of the scans do not add up to the append actual time)

It says 5 milliseconds, not 5 seconds.

> Does someone have an explanation / possible solution for this performance ?

Rethink your schema --- this is pushing the inheritance feature far
beyond what it's designed to do.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <13354.1210342366@sss.pgh.pa.us>
Permalink:  ../13354.1210342366@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13354.1210342366@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, frank.dekervel@smartlounge.be
  Subject: Re: "append" takes a lot of time in a query
  In-Reply-To: <13354.1210342366@sss.pgh.pa.us>

* 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