Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS
Дата
Msg-id
201102221407.p1ME7dA17560@momjian.us
Список
Дерево обсуждения
Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS Bruce Momjian <bruce@momjian.us>
Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS Bruce Momjian <bruce@momjian.us>
bruce wrote:
> 
> I have moved the text about duplicate constraints to the top of the
> information schema section because it affects several tables (applied
> patch attached).  I could not figure out how to get the actual error
> concept to the front of the paragraph.

I found a way to reword the paragraph to be clearer about its purpose:

   When querying the database for constraint information, it is possible
   for a standard-compliant query that expects to return one row to
   return several.  This is because the SQL standard requires constraint
   names to be unique within a schema, but
   PostgreSQL does not enforce this
   restriction.  PostgreSQL
   automatically-generated constraint names avoid duplicates in the
   same schema, but users can specify such duplicate names.

Applied.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
В списке pgsql-docs по дате отправления
От: Bruce Momjian
Дата:
От: Tom Lane
Дата:
FAQ