Im newbie with postgresql i want to know how to create a stored procedure that retrieve records something like SELECT * FROM TABLE1 WHERE TABLE1.ID = 'PARAMETER' appreciate any help, links etc... thanks Germán Fonseca P. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend