aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-10-27 17:39:23 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-10-27 18:10:42 +0100
commitf893e68d761adbee7f888109b1adf76151e3e17a (patch)
treefd4da3319cf385c87f23786edc24283fa25589cc /src/backend/access/gist/gistbuildbuffers.c
parent59ab4ac32460a6a93b665f4e487d7ff64979ba4d (diff)
downloadpostgresql-f893e68d761adbee7f888109b1adf76151e3e17a.tar.gz
postgresql-f893e68d761adbee7f888109b1adf76151e3e17a.zip
Add select_common_typmod()
This accompanies select_common_type() and select_common_collation(). Typmods were previously combined using hand-coded logic in several places. The logic in select_common_typmod() isn't very exciting, but it makes the code more compact and readable in a few locations, and in the future we can perhaps do more complicated things if desired. As a small enhancement, the type unification of the direct and aggregate arguments of hypothetical-set aggregates now unifies the typmod as well using this new function, instead of just dropping it. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/flat/97df3af9-8b5e-fb7f-a029-3eb7e80d7af9@2ndquadrant.com
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions