Re: OIDs

From: Joe Conway <mail(at)joeconway(dot)com>
To: Philip Reimer <phre(at)wi(dot)uni-muenster(dot)de>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OIDs
Date: 2002-04-29 00:47:44
Message-ID: 3CCC9830.6030801@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Philip Reimer wrote:
> Hi everyone.
> I have a simple question which I couldn't find an answer to in any of the
> PostgreSQL documentations. How long is an OID in bits? Or otherwise, is
> there a limit to OIDs, how big is the biggest OID?
> Thanks,
> Philip
>

From ~/pgsql/src/include/postgres_ext.h:
<snip>

/*
* Object ID is a fundamental type in Postgres.
*/
typedef unsigned int Oid;

#define InvalidOid ((Oid) 0)

#define OID_MAX UINT_MAX
/* you will need to include <limits.h> to use the above #define */

</snip>

So, it depends on the size of unsigned int on your platform.
HTH,

Joe

In response to

  • OIDs at 2002-04-29 00:16:04 from Philip Reimer

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-04-29 02:11:13 Re: icps, shmmax and shmall - Shared Memory tuning
Previous Message Philip Reimer 2002-04-29 00:16:04 OIDs