Re: "append" takes a lot of time in a query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frank Dekervel <frank(dot)dekervel(at)smartlounge(dot)be>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: "append" takes a lot of time in a query
Date: 2008-05-09 14:12:46
Message-ID: 13354.1210342366@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Frank Dekervel <frank(dot)dekervel(at)smartlounge(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2008-05-10 11:42:28 Re: plan difference between set-returning function with ROWS within IN() and a plain join
Previous Message Frank Dekervel 2008-05-09 08:09:46 "append" takes a lot of time in a query