Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A2CE9635A2B for ; Thu, 11 Mar 2010 11:16:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06602-01 for ; Thu, 11 Mar 2010 15:15:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mail.postgresql.org (Postfix) with ESMTP id F07686346D9 for ; Thu, 11 Mar 2010 11:15:58 -0400 (AST) Received: by fg-out-1718.google.com with SMTP id l26so2766897fgb.1 for ; Thu, 11 Mar 2010 07:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=pDUSlilbfV4AZe99RcHo9yxHPTaAIpOIhqOhdD7IlyE=; b=Z8wCthiWPKUZ7oJk1hgUpEwtdGQAyS30yg7Yt07tRAwhCg9sBD/9xZxm2YTxH556bZ 9J8WwzOJtItIHNEwyo24XZHRVlvSTpKtaRcnw17ycG3nd6O2Nfr4x1+bq1TwwYlHc5KP Rr7vrlP3Tw5DtYF/Ro5yIBGQer/lVNZCDzJ/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lU1o37btsTkfXw6AhOKXwCz5rI0BcM7JT5UyKE67wKEHvqI7f3zziFMyrncpKtl3Vv maJ84TFf3bFpvpTXogDX5pvq0SgHY7Md7casQdbTbHy2OHTgg3aHP5zU8JFzUce07JLt 5/GLWQIdaX6871kHymvIJEqeyIjdW5ELhB1/c= MIME-Version: 1.0 Received: by 10.103.37.28 with SMTP id p28mr967770muj.86.1268320556535; Thu, 11 Mar 2010 07:15:56 -0800 (PST) Date: Thu, 11 Mar 2010 18:15:56 +0300 Message-ID: Subject: Selecting names of indexes that are not dependent on constraints. From: Dmitriy Igrishin To: postgres list Content-Type: multipart/alternative; boundary=0016e65a03f43bd1bf048187e417 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.184 tagged_above=-10 required=5 tests=BAYES_40=-0.185, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/57 X-Sequence-Number: 33764 --0016e65a03f43bd1bf048187e417 Content-Type: text/plain; charset=ISO-8859-1 Hey all, How can I select names of indexes of table (or even whole schema) that are not dependent on constraints? Unfortunately there is no way to select only "independent" indexes from pg_indexes view. How can I do it? Regards, Dmitriy Igrishin --0016e65a03f43bd1bf048187e417 Content-Type: text/html; charset=ISO-8859-1 Hey all,

How can I select names of indexes of table (or even whole schema) that are not dependent on constraints?

Unfortunately there is no way to select only "independent" indexes from pg_indexes view.

How can I do it?

Regards,
Dmitriy Igrishin
--0016e65a03f43bd1bf048187e417--