> exists (select ‘found_it’ from get_jobs(x.name) j where j.job =
What does this function do ?
If it only runs on the tables, than simple join will do it pretty fast.
also, keeping job as integer, if table is large will save you some
space, make index lookup faster, and generally make everything faster.
Subselects always perform poor, so please try writing that query as
join first. Postgresql is capable of reordering, and choosing right
approach for query, this isn't mysql - you don't have try to outsmart
In response to
pgsql-general by date
|Next:||From: Gauthier, Dave||Date: 2009-04-27 21:15:05|
|Subject: Re: Query organization question|
|Previous:||From: Scott Marlowe||Date: 2009-04-27 21:00:37|
|Subject: Re: triggers and execute...|