"David Johnston" <polobo@xxxxxxxxx> writes: > SELECT ( createpkrecord('1') ).*; > [ results in function being called more than once ] Yeah. Don't do that. Better style is SELECT * FROM createpkrecord('1'); 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