Re: convert int to bytea

Usama Dar <munir.usama@gmail.com>

From: "Usama Dar" <munir.usama@gmail.com>
To: "Douglas McNaught" <doug@mcnaught.org>
Cc: ohp@pyrenet.fr, "Gregory Stark" <stark@enterprisedb.com>, "pgsql-hackers list" <pgsql-hackers@postgresql.org>
Date: 2007-11-29T16:08:08Z
Lists: pgsql-hackers
Does it matter if you have written an explicit cast for int to bytea?

On Nov 29, 2007 9:00 PM, Douglas McNaught <doug@mcnaught.org> wrote:

> On 11/29/07, ohp@pyrenet.fr <ohp@pyrenet.fr> wrote:
>
> > On Thu, 29 Nov 2007, Gregory Stark wrote:
> >
> > > What do you want the resulting bytea to look like?
> > >
> > example : id = 9 , bytea = '\000\000\011' IIRC
>
> What do you expect to happen when server and client are
> differently-endian?
>
> -Doug
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>



-- 
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar