Return an input string converted to a signed 32 bit integer.
Allows any number of leading or trailing whitespace characters. Will throw ereport()
upon bad input format or overflow.
- Returns
- On error return
PG_INT32_MAX
;
- Note
- Accumulate input as a negative number, to deal with two's complement representation of the most negative number, which can't be represented as a positive number.