]> git.ipfire.org Git - thirdparty/postgresql.git/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:45:36 +0000 (22:45 +0200)
commit3944238aabf29bf96f3fc2d332f6e80746553246
tree29076c90df26a9633990eaf14524bdd88edcd708
parentc34088fdeb979ed00c8cdf5e89fe1ce1cccbf16c
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