From: BillR <iambill@williamrosmus.com>
To: pgsql-sql@postgresql.org
Subject: domains and serial
Date: Tue, 26 Dec 2006 19:10:24 -0800
Message-ID: <4591E420.3040102@williamrosmus.com> (raw)
Is it not possible to set up a domain using this construct? I will have
a lot of tables using integer and big integer types as primary key
identifier fields. It would make things simpler if I can use the serial
construct in a domain instead of using an int or bigint in the domain,
and then change each field in each table requiring a serial or bigserial
construct.
I just tried to create a domain using a bigserial type.
CREATE DOMAIN Identifier_DM AS bigserial;
I received the error message:
ERROR: type "bigserial" does not exist
SQL state: 42704
I tried to run this in both pgadminIII and in data architect 3.5.
Thanks.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: iambill@williamrosmus.com
Subject: Re: domains and serial
In-Reply-To: <4591E420.3040102@williamrosmus.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox