Make DatumGetInetP() unpack inet datums with a 1-byte header, and add

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 61f4750bf8f7135af03bbdbe2642094169dbcb10
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2011-11-08T20:45:13Z
Releases: 8.4.10
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.

Files

PathChange+/−
src/backend/utils/adt/network.c modified +1 −1
src/include/utils/inet.h modified +3 −1