How to implement an auto-increment column for a system catalog table?

From: Xin Wang <andywx(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How to implement an auto-increment column for a system catalog table?
Date: 2009-03-16 02:18:56
Message-ID: 49BDB710.7020505@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,
I am using Postgres to build the prototype in a research project. I need
to create a new system catalog table with an auto-increment column. For
a ordinary table, CREATE SEQUENCE or a serial type can be used to
implement the auto-increment column, but it seems Postgres do not
support creating a sequence or serial types in system catalogs. How to
implement an auto-increment column for a catalog table?

Thanks in advance.

Wang

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-03-16 02:56:19 Re: Updates of SE-PostgreSQL 8.4devel patches (r1710)
Previous Message Tom Lane 2009-03-15 22:09:32 Re: Should SET ROLE inherit config params?