=?ISO-8859-1?Q?=22Rodr=EDguez_Rodr=EDguez=2C_Pere=22?= <prr@xxxxxxxxxx> writes: > how can I write a function that return two or more elements? In existing releases the best way to do this is to create a named composite type and have the function return that, not RECORD. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq