some question about column constraints

From: Bjoern Schmidt <bjoern(dot)schmidt(at)sourcepark(dot)de>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: some question about column constraints
Date: 2003-10-07 15:15:25
Message-ID: 1065539724.580.45.camel@debian
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,
I work on a tool that generates a creat script for an existing table.
My problem is to find out if a column is a constraint.
For example, I have the following creat script

create table abc(
xyz serial primary key
)

The metadata say that xyz is an int4 and not nullable.
Where I can recognize that it is a serial primary key?
Is it true that xyz always - if it is a serial primary key - will be
stored as a sequence like abc_xyz_seq?
how will others column constraints (check, unique) be stored?

Thanks,
Bjoern

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stef 2003-10-07 15:28:22 Re: Postgres low end processing.
Previous Message Greg Stark 2003-10-07 14:58:09 Re: concenation of strings and null values