pgsql: Make DatumGetInetP() unpack inet datums with a 1-byte header, an

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make DatumGetInetP() unpack inet datums with a 1-byte header, an
Date: 2011-11-08 20:51:45
Message-ID: E1RNse1-0006Dn-P6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/61f4750bf8f7135af03bbdbe2642094169dbcb10

Modified Files
--------------
src/backend/utils/adt/network.c | 2 +-
src/include/utils/inet.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-11-09 02:14:46 pgsql: Wrap appendrel member outputs in PlaceHolderVars in additional c
Previous Message Andrew Dunstan 2011-11-08 14:23:04 Re: pgsql: Remove hstore's text => text operator.