diff options
author | Andres Freund <andres@anarazel.de> | 2018-08-23 16:58:53 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-08-23 16:58:53 -0700 |
commit | 88ebd62fcc2ea7c55c0858f6dd4800d51383529f (patch) | |
tree | 652d1428bd6aeae154408c27e8725ff229162035 /src/backend/tcop/postgres.c | |
parent | a40631a920accbcca1a49a909d380308d95b4674 (diff) | |
download | postgresql-88ebd62fcc2ea7c55c0858f6dd4800d51383529f.tar.gz postgresql-88ebd62fcc2ea7c55c0858f6dd4800d51383529f.zip |
Deduplicate code between slot_getallattrs() and slot_getsomeattrs().
Code in slot_getallattrs() is the same as if slot_getsomeattrs() is
called with number of attributes specified in the tuple
descriptor. Implement it that way instead of duplicating the code
between those two functions.
This is part of a patchseries abstracting TupleTableSlots so they can
store arbitrary forms of tuples, but is a nice enough cleanup on its
own.
Author: Ashutosh Bapat
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions