From: | Radosław Smogura <rsmogura(at)softperience(dot)eu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | "Reuven M(dot) Lerner" <reuven(at)lerner(dot)co(dot)il> |
Subject: | Re: Questions about octal vs. hex for bytea |
Date: | 2011-02-20 15:10:22 |
Message-ID: | 201102201610.22836.rsmogura@softperience.eu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Reuven M. Lerner" <reuven(at)lerner(dot)co(dot)il> Sunday 20 February 2011 12:31:09
> Hi, everyone. I've got a client who is planning to upgrade from
> PostgreSQL 8.3 to 9.0 in the coming weeks. They use a lot of tables
> with bytea columns. They're worried about the switch from octal to hex
> formats for bytea data.
>
>
> Based on everything I know and have read, the change is only for
> external representations, for input and output. Output is now by
> default in hex, but can be changed with a parameter (bytea_output) that
> provides backward compatibility. Input can be in either octal or hex,
> with no changes needed.
>
>
> My client is concerned that the internal representation has changed, and
> is asking me for a script that will change the representation, in order
> to save space (since hex occupies less space than octal). I'm not aware
> of such a need, or even the possibility for this to be done; even if the
> internal representation has changed, it'll be handled in the upgrade
> process, and doesn't need to be done with anything external.
>
>
> So I've told them that I don't think that anything is necessary for
> either input or output, except (perhaps) to set bytea_output in its
> backward-compatibility mode. But I wanted to check with people here,
> just to double-check my understanding.
>
>
> Thanks in advance,
>
>
> Reuven
There is no internal change how bytea is keept or at least internally data are
not keept in octal or hex represenation. If your client uses JDBC it's better
to download newest driver. It should support as well hex and octal receive. It
is safer to turn on backward compatibility. I know nothing how pg_dump will
work to migrate data.
Regards,
Radek
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-02-20 15:38:05 | Re: Questions about octal vs. hex for bytea |
Previous Message | David Johnston | 2011-02-20 14:00:35 | Re: Questions about octal vs. hex for bytea |