Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2DAAE63511B for ; Thu, 16 Apr 2009 16:12:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 54734-09 for ; Thu, 16 Apr 2009 16:12:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 730E86350F6 for ; Thu, 16 Apr 2009 16:12:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n3GJCJLG028153; Thu, 16 Apr 2009 15:12:19 -0400 (EDT) To: Gerardo Herzig cc: pgsql-sql@postgresql.org Subject: Re: finding UNIQUES in information_schema In-reply-to: <49E787FC.8020909@fmed.uba.ar> References: <49E787FC.8020909@fmed.uba.ar> Comments: In-reply-to Gerardo Herzig message dated "Thu, 16 Apr 2009 16:33:16 -0300" Date: Thu, 16 Apr 2009 15:12:19 -0400 Message-ID: <28152.1239909139@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.159 tagged_above=0 required=5 tests=AWL=0.159 X-Spam-Level: X-Archive-Number: 200904/96 X-Sequence-Number: 32442 Gerardo Herzig writes: > Hi all. Im failing while trying to obtain some metainfo from > information_schema. Acording to the docs, constraint_column_usage and > key_column_usage views contains some information about constraints and > indexes. No, they contain information about constraints, period. How did you create those indexes? If you made them via SQL-standard PRIMARY KEY or UNIQUE constraint syntax, they should show in the information_schema. Otherwise not. regards, tom lane