-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > create or replace function check_close2() returns CHECK_CLOSE AS ' "return next" needs sets as a return type. create or replace function check_close2() returns setof check_close ... ^^^^^ should work. Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists <at> klawitter <dot> de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAfjs71Xdt0HKSwgYRAmIvAJ9nQzUtVpT4egB+xAOI4DPyVk/OmwCfQ7qi wQzeVMejRmZEm2SLLwko3a4= =E/In -----END PGP SIGNATURE----- ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match