|
|||||||||||
|
Re: [PERFORM] Performance problems inside a stored procedure.
From: Matthew Lunnon <mlunnon(at)rwa-net.co.uk>
Date: Mon Jan 28 2008 - 07:10:24 EST Ahh, sorry, I have been too aggressive with my cutting, I am running 8.2.6 and the function is below.
Thanks.
CREATE OR REPLACE FUNCTION sp_get_price_panel_id(int4, "varchar",
"varchar", "varchar", bpchar)
JOIN market_group_relation mgr USING (market_id) JOIN market_group mg USING (market_group_id) JOIN market_group_price_relation mgpr USING (market_group_id)JOIN accommodation_price_panel app ON app.accommodation_price_panel_id = mgpr.price_panel_id WHERE mrkt.live <> 'X'::bpchar AND mg.live <> 'X'::bpchar AND app.live <> 'X'::bpchar AND MARKET_ID = $1
Heikki Linnakangas wrote:
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Received on Mon Jan 28 07:13:59 2008This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 16:23:16 EDT |
||||||||||
|
|||||||||||