Re: Getting FK relationships from information_schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Kyle <kyle(at)actarg(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Getting FK relationships from information_schema
Date: 2004-06-10 06:32:14
Message-ID: 20685.1086849134@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane wrote:
>> We have discussed changing the default names of FK constraints
>> before. I have no problem with doing something like the above --- any
>> objection out there?

> I think it's a good idea. It will also make the error messages of the
> kind "foreign key $1 violated" a bit clearer by default.

Right ho --- I'm working on a patch that will choose default names
of the form table_column_checkN and table_column_fkeyN, similar to
what we already do for index constraints.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Martin Schäfer 2004-06-10 07:56:05 Find out whether a view's column is indexed?
Previous Message Tom Lane 2004-06-10 04:21:01 Re: Schema + User-Defined Data Type Indexing problems...