Schwarz, Karl wrote:
Is there something basic I am missing here with the use of a function. I
am no database expert, but my assumption was that a function would give
me better results than in-line sql.
Not necessarily. Usually it means the planner has less information to go on.
We'll need more information though - table definitions, queries, how is
the function called etc.
--
Richard Huxton
Archonet Ltd
---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate