Calling psql stored function
". $result; echo "
".pg_fetch_result($result,0); pg_close($dbconn); ?>