]> granicus.if.org Git - postgresql/commit
Make DatumGetInetP() unpack inet datums with a 1-byte header, and add
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Nov 2011 20:39:43 +0000 (22:39 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Nov 2011 20:39:43 +0000 (22:39 +0200)
commit3b8161723c645853021b57330dd2ea0484ec6131
tree35598ad6595115ba8b60466fe877628156f60562
parent0e1c4b7d974b9ff3b1cd62a9689a8560a8bab60e
Make DatumGetInetP() unpack inet datums with a 1-byte header, and add
a new macro, DatumGetInetPP(), that does not. This brings these macros
in line with other DatumGet*P() macros.

Backpatch to 8.3, where 1-byte header varlenas were introduced.
src/backend/utils/adt/network.c
src/include/utils/inet.h