16/32/48/64 bytes integers

Started by Daniel Oliveiraover 15 years ago2 messages
#1Daniel Oliveira
danielmarquesoliveira@gmail.com

Hello,

I wishing to create real big numbers, but I'm facing some difficulties.

Is possible to setup an integer type of more than 8 bytes (i.e. 16/32/48/64
bytes)?

Can I setup a value as large as I want?

How I should acess them using PG_RETURN_xxx and PG_GETARG_xxx macros?

Thanks in advance,

Daniel Oliveira

#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Daniel Oliveira (#1)
Re: 16/32/48/64 bytes integers

On 11/08/10 21:19, Daniel Oliveira wrote:

I wishing to create real big numbers, but I'm facing some difficulties.

Is possible to setup an integer type of more than 8 bytes (i.e. 16/32/48/64
bytes)?

No. Not unless you write your own datatype.

Use numeric, it scales up to ridiculously large numbers.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com