Get next OID

From: Dianne Yumul <dianne(at)wellsgaming(dot)com>
To: PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Get next OID
Date: 2010-09-29 17:26:36
Message-ID: 8C1F9FA6-4E25-467B-B1C8-B6FE2BFEEF0E@wellsgaming.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello everyone,

We have PostgreSQL 8.1.21 on CentOS 5.5 and some of our older programs still use OIDs to identify a row. I'm planning on adding a serial column to the tables and modifying the code to use the serial column instead. But I am curious to find out how close we are before the OID wraps around. Is there a way to check for this? I tried select max(oid) from table on the tables and the highest I got was around 8 million. I searched the docs, faq and mailing list archives but haven't found any info on getting the next OID.

Thank you very much.

Dianne

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2010-09-29 18:08:22 Prepared statements and unknown types
Previous Message Christian Ramseyer 2010-09-29 17:09:50 Re: FTS GIN Index Question