Re: how to determine array size - Mailing list pgsql-sql

From Rod Taylor
Subject Re: how to determine array size
Date
Msg-id 1055246667.56597.39.camel@jester
Whole thread Raw
In response to how to determine array size  (Forest Wilkinson <lyris-pg@tibit.com>)
Responses Re: how to determine array size
List pgsql-sql
On Mon, 2003-06-09 at 16:23, Forest Wilkinson wrote:
> I need to enumerate the constraints on any given column in a table, so
> I'm examining pg_constraint to get the relevant information.  The
> conkey array contains a list of constrained columns, and although I am
> able to check conkey[1] for constraints on a single column, I would
> like to properly handle multi-column constraints.

You may have an easier time dealing with pg_get_constraintdef() than
trying to get the info from the source.

The above function outputs the necessary SQL to rebuild the constraint,
and is used by pg_dump.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Coalesce/Join/Entries may not exist.
Next
From: Tom Lane
Date:
Subject: Re: left join in cursor