converting from bytea to integers

Поиск
Список
Период
Сортировка
От John DeSoi
Тема converting from bytea to integers
Дата
Msg-id 92E5C4EC-090E-497C-A5CA-0D6223C254CA@pgedit.com
обсуждение исходный текст
Ответы Re: converting from bytea to integers
Список 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 по дате отправления: