Re: WRITE_*_ARRAY macros for outfuncs.c

2018-12-19 Thread Tom Lane
Peter Eisentraut writes: > In readfuncs.c, we have READ_ATTRNUMBER_ARRAY, READ_OID_ARRAY, > READ_INT_ARRAY, READ_BOOL_ARRAY, but the writing side in outfuncs.c is > coded by hand in each case. Any reason for this? > Here is a patch that adds WRITE_ATTRNUMBER_ARRAY, WRITE_OID_ARRAY, > WRITE_INT_A

WRITE_*_ARRAY macros for outfuncs.c

2018-12-18 Thread Peter Eisentraut
In readfuncs.c, we have READ_ATTRNUMBER_ARRAY, READ_OID_ARRAY, READ_INT_ARRAY, READ_BOOL_ARRAY, but the writing side in outfuncs.c is coded by hand in each case. Any reason for this? Here is a patch that adds WRITE_ATTRNUMBER_ARRAY, WRITE_OID_ARRAY, WRITE_INT_ARRAY, WRITE_BOOL_ARRAY. That seems