Re: Bytea as C string in pg_convert? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bytea as C string in pg_convert?
Date
Msg-id 13668.1190644339@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bytea as C string in pg_convert?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Bytea as C string in pg_convert?
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> We can and possibly should change the GETARG call, but the varlena types 
> are structurally equivalent, so it's not a mortal sin being committed here.

We *definitely* should change it --- the reason for having all those
variant macros in the first place was to help document the argument
types of V1 functions.  It's too bad the compiler doesn't warn about
the type mismatch here ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: [PATCHES] Eliminate more detoast copies for packed varlenas
Next
From: Andrew Dunstan
Date:
Subject: Re: Bytea as C string in pg_convert?