Skip site navigation (1) Skip section navigation (2)

Re: convert int to bytea

From: ohp(at)pyrenet(dot)fr
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: convert int to bytea
Date: 2007-11-29 14:45:10
Message-ID: Pine.UW2.4.53.0711291540430.14490@sun.pyrenet (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi Gregory
On Thu, 29 Nov 2007, Gregory Stark wrote:

> Date: Thu, 29 Nov 2007 14:34:57 +0000
> From: Gregory Stark <stark(at)enterprisedb(dot)com>
> To: ohp(at)pyrenet(dot)fr
> Cc: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
> Subject: Re: convert int to bytea
>
> <ohp(at)pyrenet(dot)fr> writes:
>
> > select 124::bytea doesn't work
> >
> > Is there an other way? (preferabily simple :)
>
> This kind of question would be more appropriate on pgsql-general.
>
I know, I should subscribe :)

> What do you want the resulting bytea to look like?
>
example : id = 9 , bytea = '\000\000\011' IIRC
>

-- 
Olivier PRENANT        	        Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges                +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                       +33-6-07-63-80-64 (GSM)
FRANCE                          Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-11-29 15:23:48
Subject: Re: Jaguar is up
Previous:From: Gregory StarkDate: 2007-11-29 14:34:57
Subject: Re: convert int to bytea

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group