Re: [GENERAL] How to improve: performance of query on postgresql 8.3 takes days

2010-07-30 Thread Alban Hertroys
On 29 Jul 2010, at 23:58, Dino Vliet wrote: > CREATE OR REPLACE FUNCTION agenttype1(a character) > RETURNS integer AS > LANGUAGE 'plpgsql' VOLATILE > COST 100; > > > CREATE OR REPLACE FUNCTION agenttype2(a character) > RETURNS integer AS > LANGUAGE 'plpgsql' VOLATILE > COST 100; > > > CREATE

Re: [GENERAL] How to improve: performance of query on postgresql 8.3 takes days

2010-07-29 Thread A. Kretschmer
In response to Dino Vliet : > I arrived at 15 functions because I had 7 or 8 joins in the past and saw that > my disk was getting hid and I had heard someplace that RAM is faster so I > rewrote those 7 or 8 joins as functions in pl/pgsql. They were just simple > lookups, although some of the functi

Re: [GENERAL] How to improve: performance of query on postgresql 8.3 takes days

2010-07-29 Thread John R Pierce
On 07/29/10 2:58 PM, Dino Vliet wrote: Dear postgresql list, I have some troubles generating data for a analysis task at hand. I have a table (table A) containing 5 million records and 28 number of attributes. This table is 461MB big if I copy it to a csv file. I want to create another