Re: [GENERAL] Query process is very slow

2010-06-08 Thread Szymon Guz
2010/6/8 Kalai R > Sir, > > I am using the following psql query with union and subqueries in my > project. > > > select a.areaname,f.fmno,fm.mno,f.aliasno as falias,f.salutation as > fsal,f.headname, fm.aliasno as fmalias,fm.salutation as fmsal,fm.membername, > extract (year from age(now(), to_da

[GENERAL] Query process is very slow

2010-06-08 Thread Kalai R
Sir, I am using the following psql query with union and subqueries in my project. select a.areaname,f.fmno,fm.mno,f.aliasno as falias,f.salutation as fsal,f.headname, fm.aliasno as fmalias,fm.salutation as fmsal,fm.membername, extract (year from age(now(), to_date(fm.dob,'-MM-dd'))) as age,