pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQLStatistics problem
2+ messages / 2 participants
[nested] [flat]
* SQLStatistics problem
@ 2006-08-23 20:04 Blake McBride <blake@mcbride.name>
2006-08-24 13:22 ` Re: SQLStatistics problem Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Blake McBride @ 2006-08-23 20:04 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
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.
Sincerely,
Blake McBride
blake@mcbride.name
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: SQLStatistics problem
2006-08-23 20:04 SQLStatistics problem Blake McBride <blake@mcbride.name>
@ 2006-08-24 13:22 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2006-08-24 13:22 UTC (permalink / raw)
To: Blake McBride <blake@mcbride.name>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-08-24 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-23 20:04 SQLStatistics problem Blake McBride <blake@mcbride.name>
2006-08-24 13:22 ` Hiroshi Inoue <inoue@tpf.co.jp>
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