I insist in my question, is there a way to compile the plpgsql codes or something like that
no
think about writting this postgres functions in C??????
yes
Joe
---------------------------(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