Re: [HACKERS] How to implement an auto-increment column for a system catalog table?

2009-03-16 Thread Simon Riggs
On Mon, 2009-03-16 at 10:18 +0800, Xin Wang wrote: 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

Re: [HACKERS] How to implement an auto-increment column for a system catalog table?

2009-03-16 Thread Tom Lane
Simon Riggs si...@2ndquadrant.com writes: On Mon, 2009-03-16 at 10:18 +0800, Xin Wang wrote: 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. Other catalog tables use a new oid for each new row/entry.