aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2025-03-07 09:31:18 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2025-03-07 09:31:18 +0000
commit6da469badaffec32f8a804181cca279561467378 (patch)
tree7d0ab3f88e0eec27a9377e53901a720d8b0e1403 /src/backend/access/gist/gist.c
parentd611f8b1587b8f30caa7c0da99ae5d28e914d54f (diff)
downloadpostgresql-6da469badaffec32f8a804181cca279561467378.tar.gz
postgresql-6da469badaffec32f8a804181cca279561467378.zip
Allow casting between bytea and integer types.
This allows smallint, integer, and bigint values to be cast to and from bytea. The bytea value is the two's complement representation of the integer, with the most significant byte first. For example: 1234::bytea -> \x000004d2 (-1234)::bytea -> \xfffffb2e Author: Aleksander Alekseev <aleksander@timescale.com> Reviewed-by: Joel Jacobson <joel@compiler.org> Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com> Discussion: https://postgr.es/m/CAJ7c6TPtOp6%2BkFX5QX3fH1SVr7v65uHr-7yEJ%3DGMGQi5uhGtcA%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions