Re: [Fwd: Re: [PERFORM] Outer joins and Seq scans]

2007-11-02 Thread Alvaro Herrera
Sami Dalouche wrote: > -- For some reason, my message doesn't seem to go through the mailing > list, so I am trying without any attachment FWIW, you can post EXPLAIN ANALYZE results on the web here: http://www.explain-analyze.info/ It's a pretty cool utility by Michael Glaesemann that should make

Re: [PERFORM] Hardware for PostgreSQL (RAID configurations)

2007-11-02 Thread Mark F
From: [EMAIL PROTECTED] To: pgsql-performance@postgresql.org Subject: [PERFORM] Date: Fri, 2 Nov 2007 15:03:12 -0500 In an 8 disk configuration where 2 are used for OS; 2 for xlog, and 4 for the database.. is this possible given Dell's possible configurations only allow 2 different RA

[PERFORM]

2007-11-02 Thread Mark F
In an 8 disk configuration where 2 are used for OS; 2 for xlog, and 4 for the database.. is this possible given Dell's possible configurations only allow 2 different RAID setups (SAS Raid1/Raid5)? I will also be contacting Dell, but does this require a more advanced RAID controller that suppor

Re: [PERFORM] Hardware for PostgreSQL

2007-11-02 Thread Jurgen Haan
Ketema wrote: > RAM? The more the merrier right? Understanding shmmax and the pg > config file parameters for shared mem has to be adjusted to use it. > Disks? standard Raid rules right? 1 for safety 5 for best mix of > performance and safety? > Any preference of SCSI over SATA? What about us

Re: [PERFORM] select max(field) from table much faster with a group by clause?

2007-11-02 Thread Palle Girgensohn
--On torsdag, november 01, 2007 11.34.42 -0400 Tom Lane <[EMAIL PROTECTED]> wrote: Palle Girgensohn <[EMAIL PROTECTED]> writes: --On torsdag, november 01, 2007 11.06.57 -0400 Tom Lane <[EMAIL PROTECTED]> wrote: Um, you did re-ANALYZE the table after changing the setting? alter table lo

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

2007-11-02 Thread Pavel Stehule
Hello I am not sure, but this query will be evaluated efectivelly, because all necessary data will be in cache. PostgreSQL doesn't support Common Table Expressions - you can write SRF function: CREATE OR REPLACE FUNCTION c(integer) RETURNS SETOF something AS $$ DECLARE r RECORD; o something; B

[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