Postgresql Create Function With C