Re: Empty bytea format - 9.1devel pg_dump and psql - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Empty bytea format - 9.1devel pg_dump and psql
Date
Msg-id 24988.1287432643@sss.pgh.pa.us
Whole thread Raw
In response to Re: Empty bytea format - 9.1devel pg_dump and psql  (Vladimir Kokovic <kokovic.vladimir@gmail.com>)
List pgsql-bugs
Vladimir Kokovic <kokovic.vladimir@gmail.com> writes:
> I think that empty bytea shoukd be like in 8.4, without \\x !

We could do that, but it seems completely cosmetic.  The real problem
here is that you've got client-side code that doesn't understand the
hex-based format.  It's going to break as soon as it sees a non-empty
bytea, so what's the use of trying to make the empty-string case
backwards compatible?  It's probably better you find out about the
incompatibility sooner, so you can get on with fixing the real problem.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Vladimir Kokovic
Date:
Subject: Re: Empty bytea format - 9.1devel pg_dump and psql
Next
From: Robert Haas
Date:
Subject: Re: How do I remove PostgreSQL completely?