Dump serials as serial -- not a sequence

From: Rod Taylor <rbt(at)zort(dot)ca>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Dump serials as serial -- not a sequence
Date: 2002-08-12 01:19:26
Message-ID: 1029115167.239.22.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

- Fix an issue indexing domains. Ensure we look for the operator class
of the base type, not the domain type.
- Add an is_serial boolean attribute to sequence tables.
- Add serial4 and serial8 domains with respective serial and bigserial
aliases (similar to int4 and int8 to integer and bigint)
- Jump through hoops to deal with a primary key'd serial column, alter
table add primary key doesn't work for these.
- Fix type sanity checks to account for domains.

End result, pg_dump no longer uses sequences for serials and psql shows
serials rather than integer columns.

Attachment Content-Type Size
dumpserial.patch text/plain 30.7 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-08-12 05:06:31 Re: stand-alone composite types patch (was [HACKERS] Proposal:
Previous Message Tatsuo Ishii 2002-08-12 01:07:20 Re: [GENERAL] workaround for lack of REPLACE() function