> Probably easier to create a server side function instead, then.But wouldn't you still have to go through all the planning steps within the function for any queries, although i'll admit i'm not familiar with Postgresql functions.
JOHN