added semiocasts pgsql library for OTPish use