> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cockroachlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OID

The object identifier (`OID`) [data type](/docs/stable/data-types.md) stores an unsigned 32-bit integer value.

OIDs are used internally as primary keys for tables in [system catalogs](/docs/stable/system-catalogs.md), notably `information_schema` and `pg_catalog`.

CockroachDB supports many [functions](/docs/stable/functions-and-operators.md#built-in-functions) that accept OIDs as argument types and return OIDs, and [operators](/docs/stable/functions-and-operators.md#operators) that operate on OIDs and other data types. These functions are used by drivers and ORMs and you can use these functions to introspect your schema.

## Size

A `OID` value is 32 bits in width.

## Best practices

You **should not**:

* Use OIDs in user-created tables. Values of this type are not guaranteed to be stable across major releases.
* Rely on OIDs to be globally unique. Each OID subtype is unique only within a certain namespace.

## See also

* [Data Types](/docs/stable/data-types.md)
* [Functions and Operators](/docs/stable/functions-and-operators.md)
* [System Catalogs](/docs/stable/system-catalogs.md)
