Re: Bytea binary compatible - Mailing list pgsql-patches

From Tom Lane
Subject Re: Bytea binary compatible
Date
Msg-id 9258.993343162@sss.pgh.pa.us
Whole thread Raw
In response to Bytea binary compatible  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Bytea binary compatible  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Here is a patch to make bytea binary compatible with other text data
> types.  Comments?

No way!  Unless you propose to make the text types null-safe (which
would mean such nontrivial projects as replacing strcoll()).

The fact that the storage formats are both struct varlena does not
mean that these types are interchangeable.  I fail to see where it'd
be a good idea to mark them binary-compatible, even if there weren't
serious implementation issues.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Bytea binary compatible
Next
From: Bruce Momjian
Date:
Subject: Re: Bytea binary compatible