converting from bytea to integers - Mailing list pgsql-general

From John DeSoi
Subject converting from bytea to integers
Date
Msg-id 92E5C4EC-090E-497C-A5CA-0D6223C254CA@pgedit.com
Whole thread Raw
Responses Re: converting from bytea to integers
List pgsql-general
I'd like to convert some bytea data to an array of four byte integers
(and vice versa). I'm probably missing something obvious, but I don't
see an efficient way to generate a 4 byte integer from a bytea string
(could be big endian or little endian).  Converting back to bytea
seems easy enough using to_hex.

Thanks for any suggestions,



John DeSoi, Ph.D.





pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Frequently unable connecting to db "server doesn't listen"
Next
From: Peter Eisentraut
Date:
Subject: Re: One command to rule them all?