| От | Andrew Dunstan |
|---|---|
| Тема | Re: Adding unsigned 256 bit integers |
| Дата | |
| Msg-id | 53469C16.2020103@dunslane.net обсуждение исходный текст |
| Ответ на | Adding unsigned 256 bit integers (Olivier Lalonde <olalonde@gmail.com>) |
| Список | pgsql-hackers |
On 04/10/2014 09:13 AM, Olivier Lalonde wrote: > I was wondering if there would be any way to do the following in > PostgreSQL: > > UPDATE cryptotable SET work = work + 'some big hexadecimal number' > > where work is an unsigned 256 bit integer. Right now my column is a > character varying(64) column (hexadecimal representation of the > number) but I would be happy to switch to another data type if it lets > me do the operation above. > > If it's not possible with vanilla PostgreSQL, are there extensions > that could help me? > > The numeric type allows numbers with huge numbers of digits. I've used it to calculate fibonacci numbers thousands of digits long. cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера