Don Y <pgsql(at)DakotaCom(dot)Net> writes:> Nearest I can tell, the problem is related to my attempt to> return an int "by value"
If that's what you intend, try cluing in CREATE TYPE (seePASSEDBYVALUE).
regards, tom lane