[PERFORM] Inherited Table Query Planning (fwd)

2005-07-27 Thread Jens-Wolfhard Schicke
Is there a way to make the query planner consider pulling inner appends outside joins? Example: natural_person inherits from person (obviously) admpostgres3=# explain analyze select u.name, p.name from users u, person p where p.user_id = u.id and u.name = 's_ohl';

Re: [PERFORM] Some ideas for comment

2005-08-25 Thread Jens-Wolfhard Schicke
--On Mittwoch, August 24, 2005 16:26:40 -0400 Chris Hoover <[EMAIL PROTECTED]> wrote: On 8/24/05, Merlin Moncure <[EMAIL PROTECTED]> wrote: Linux does a pretty good job of deciding what to cache. I don't think this will help much. You can always look at partial indexes too. Yes, but won't

Re: [PERFORM] ORDER BY and LIMIT not propagated on inherited

2005-09-02 Thread Jens-Wolfhard Schicke
The correct strategy IMHO would be applying the order by and limit for each child table (which results in an index scan, if possible), appending, then finally sorting a bunch of rows, and limiting again. This would be a win in some cases, and in many others a loss (ie, wasted sort steps). The h

Re: [PERFORM] Used Memory

2005-10-21 Thread Jens-Wolfhard Schicke
--On Freitag, Oktober 21, 2005 03:40:47 + "Christian Paul B. Cosinas" <[EMAIL PROTECTED]> wrote: I am having a confusion to the memory handling of postgreSQL. I rebooted my Server which is a PostgreSQL 8.0 Running on Redhat 9, which is a Dual Xeon Server and 6 gig of memory. Of course there

[PERFORM] Materialize Subplan and push into inner index conditions

2006-01-03 Thread Jens-Wolfhard Schicke
Is it possible to have the planner consider the second plan instead of the first? admpostgres4=> explain analyze select * from users where id in (select user_id from user2user_group where user_group_id = 769694); QUERY PLAN --

[PERFORM] Unfortunate expansion of composite types in union

2007-11-02 Thread Jens-Wolfhard Schicke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have the following query: explain analyze SELECT (cast(( SELECT cast(row(1, o.id, NULL, NULL, NULL, NULL) as something) FROM ONLY object o WHERE o.id = l.e UNION ALL SELECT cast(row(2, l2.id, l2.s, l2.e, l2.intensity, N

Re: [PERFORM] Unfortunate expansion of composite types in union

2007-11-04 Thread Jens-Wolfhard Schicke
er. So I tried the query in the original post, and found the execution plan to be suboptimal. Today I tried to do it with OUTER JOINs but failed utterly. So what is the best way to get the results? The original query is exactly what I need, only the plan is bad. Any Ideas?

[PERFORM] Subpar Execution Plan

2007-11-06 Thread Jens-Wolfhard Schicke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a two relevant tables: fastgraph=# \d object Table "public.object" Column | Type | Modifiers - ++-- id | bigint | not null default nextval

[PERFORM] random_page_cost etc. per tablespace?

2007-11-13 Thread Jens-Wolfhard Schicke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, how hard would it be to give users the ability to configure different random_page and seq_page costs per tablespace? Obviously this does not match with random_page_cost being a GUC variable but nonetheless I think it'd make a nice feature. I jus