Re: [GENERAL] Left joining table to setof function

2007-09-07 Thread Tom Lane
Robert Fitzpatrick <[EMAIL PROTECTED]> writes: > trax=# explain analyze select * from client_search_id_func(62) left join > tblsearch_selections ON search_id = 62 and user_id = 'RF' and > ((selected_value = clientno and selection_type = 'client') or (selected_value > = contactno and selection_ty

Re: [GENERAL] Left joining table to setof function

2007-09-07 Thread Gregory Stark
"Robert Fitzpatrick" <[EMAIL PROTECTED]> writes: > Indexes: > "tblsearch_selections_pkey" PRIMARY KEY, btree (search_selection_id) > "search_selection_unique_idx" UNIQUE, btree (search_id, user_id, > selection_value, selection_type) SELECT * FROM client_search_id_func(62) LEFT

[GENERAL] Left joining table to setof function

2007-09-07 Thread Robert Fitzpatrick
I have a function that returns a set of a custom type... trax=# \d client_search Composite type "public.client_search" Column | Type + clientno | bigint client | character varying(100) contactno | bigint c