Unique constraint and unique index

From: Ivan Radovanovic <radovanovic(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Unique constraint and unique index
Date: 2013-08-21 17:46:02
Message-ID: 5214FCDA.7080509@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just to verify:
- when unique constraint is created using appropriate syntax rows are
added to tables pg_constraint and pg_index (pg_constraint with type 'u'
and referring to index with indisunique set to true)
- when unique index is created row is added only to pg_index table but
not to pg_constraint table (although in fact that index is behaving like
constraint on table)

Is that correct?

Regards,
Ivan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lonni J Friedman 2013-08-21 18:23:26 Re: WAL Replication Working but Not Working
Previous Message Robert Sosinski 2013-08-21 15:56:43 Re: Memory Issue with array_agg?