Re: [GENERAL] Inherited tables vs UNION ALL views

2006-09-14 Thread Tom Lane
Florian Weimer <[EMAIL PROTECTED]> writes:
> I'm going to create a (manually) partioned table and wonder whether I
> should use inherited tables or an explicitly created view using UNION
> ALL.  Constraint exclusion is not important for this application
> (major updates will directly target the individual tables).

IIRC, these should be planned equivalently in 8.2, but they go through
different planner paths in 8.1 and before --- you'll want to check the
specific queries you have in mind and see whether they get planned as
you want.  C-E definitely only works on the inheritance case in 8.1.

regards, tom lane

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


[GENERAL] Inherited tables vs UNION ALL views

2006-09-14 Thread Florian Weimer
I'm going to create a (manually) partioned table and wonder whether I
should use inherited tables or an explicitly created view using UNION
ALL.  Constraint exclusion is not important for this application
(major updates will directly target the individual tables).

After these considerations, is there still a difference between the
two approaches?

-- 
Florian Weimer<[EMAIL PROTECTED]>
BFK edv-consulting GmbH   http://www.bfk.de/
Durlacher Allee 47tel: +49-721-96201-1
D-76131 Karlsruhe fax: +49-721-96201-99

---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster