Michael Ainsworth <michael.ainsworth@xxxxxxxxxxxxxxx> writes: > My question is: Can someone please enlighten me as to why the result of the last function call overwrites the results to the previous function calls? Sounds to me like your function is using a static area for its result, or something along that line. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general