]> granicus.if.org Git - postgresql/commit
Expose more out/readfuncs support functions.
authorAndres Freund <andres@anarazel.de>
Fri, 8 Apr 2016 21:26:36 +0000 (14:26 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 8 Apr 2016 21:26:36 +0000 (14:26 -0700)
commitc1ddd2361f6eb071d51b856c697a4aab22f8c776
tree82ed4e634e950bc208f192afc78dc29da32c7968
parent7a542700df25eaf97b794bff63606176433dcdda
Expose more out/readfuncs support functions.

Previously bcac23d exposed a subset of support functions, namely the
ones Kaigai found useful. In
20160304193704.elq773pyg5fyl3mi@alap3.anarazel.de I mentioned that
there's some functions missing to use the facility in an external
project.

To avoid having to add functions piecemeal, add all the functions which
are used to define READ_* and WRITE_* macros; users of the extensible
node functionality are likely to need these. Additionally expose
outDatum(), which doesn't have it's own WRITE_ macro, as it needs
information from the embedding struct.

Discussion: 20160304193704.elq773pyg5fyl3mi@alap3.anarazel.de
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/include/nodes/nodes.h