effective SELECT from child tables

From: "Ilia Kantor" <ilia(at)obnovlenie(dot)ru>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: effective SELECT from child tables
Date: 2005-09-27 17:30:55
Message-ID: auto-000571351417@umail.ru
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-hackers

Let table A be inherited by A1, A2, A3.

How to select from A records where actual relations are A1, A2 ?

I found a way somewhere, it sounds like SELECT : WHERE tableoid IN (a1.oid,

but tableoid checks actually do seq scan.

Like: SELECT * FROM sometable WHERE tableoid =anything will do seq. scan on

So such way seems very ineffective: it seq scans and filters records..

Maybe new constraint_exclusion staff could help to exclude non-matching
tables from inheritance query ?


Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-09-27 17:51:03 Install pg_regress script to support PGXS?
Previous Message Jeffrey W. Baker 2005-09-27 17:26:28 Re: [PERFORM] A Better External Sort?