Skip to content

Commit b45242f

Browse files
committed
Move code for the bytea data type from varlena.c to new bytea.c
This commit moves all the routines related to the bytea data type into its own new file, called bytea.c, clearing some of the bloat in varlena.c. This includes the routines for: - Input, output, receive and send - Comparison - Casts to integer types - bytea-specific functions The internals of the routines moved here are unchanged, with one exception. This comes with a twist in bytea_string_agg_transfn(), where the call to makeStringAggState() is replaced by the internals of this routine, still located in varlena.c. This simplifies the move to the new file by not having to expose makeStringAggState(). Author: Aleksander Alekseev <aleksander@timescale.com> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CAJ7c6TMPVPJ5DL447zDz5ydctB8OmuviURtSwd=PHCRFEPDEAQ@mail.gmail.com
1 parent bee23ea commit b45242f

File tree

4 files changed

+1203
-1156
lines changed

4 files changed

+1203
-1156
lines changed

src/backend/utils/adt/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ OBJS = \
2323
arrayutils.o \
2424
ascii.o \
2525
bool.o \
26+
bytea.o \
2627
cash.o \
2728
char.o \
2829
cryptohashfuncs.o \

0 commit comments

Comments
 (0)