From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Blake McBride <blake@mcbride.name>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SQLStatistics problem
Date: Thu, 24 Aug 2006 22:22:50 +0900
Message-ID: <44EDA82A.5060906@tpf.co.jp> (raw)
In-Reply-To: <7.0.1.0.2.20060823145234.0255e7e0@mcbride.name>
References: <7.0.1.0.2.20060823145234.0255e7e0@mcbride.name>
Blake McBride wrote:
>
> Greetings,
>
> I am having a problem with SQLStatistics. I am using Hiroshi Inoue's
> latest ODBC DLL's, PostgreSQL 8.1.2, all on Windows XP.
>
> I issued the following SQL statements:
>
>
> ALTER TABLE ONLY rights
> ADD CONSTRAINT rights_id_key UNIQUE (id);
>
>
> CREATE UNIQUE INDEX blake ON rights (deny_flag);
>
> When I do a dump of the database the two statements create different
> results as I would expect. By "different results" I mean the dump uses
> different commands to re-create each of those things. One is a constraint
> and the other an index.
>
> When I use ODBC SQLStatistics I get back records for each of those
> statements
> but there is no way to distinguish the constraint from the index.
>
> Any help would be appreciated.
One way seems to be to check the existence of pg_constraint data
whose name = the index_name.
regards,
Hiroshi Inoue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, blake@mcbride.name
Subject: Re: SQLStatistics problem
In-Reply-To: <44EDA82A.5060906@tpf.co.jp>
References: <7.0.1.0.2.20060823145234.0255e7e0@mcbride.name> <44EDA82A.5060906@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox