WRITE_*_ARRAY macros for outfuncs.c
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-18T21:12:05Z
Lists: pgsql-hackers
Attachments
- 0001-Add-WRITE_-_ARRAY-macros.patch (text/plain) patch 0001
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 much nicer. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Add WRITE_*_ARRAY macros
- 66ca44084d7a 12.0 landed