determine if a column is UNIQUE using metadata - Mailing list pgsql-jdbc

From Peter Michaux
Subject determine if a column is UNIQUE using metadata
Date
Msg-id 3cbaf1c80801191643p582cf7fasd5f5a19564c1da08@mail.gmail.com
Whole thread Raw
Responses Re: determine if a column is UNIQUE using metadata  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hi,

I've been trying to determine if a column is UNIQUE. I've been trying
to use the following

connection.getMetaData().getIndexInfo(null, "", "comment", false, true);

but it always says that the columns are not unique.

Am I on the right track with the above technique or should I be trying
to do something totally different?

Thanks,
Peter

pgsql-jdbc by date:

Previous
From: "Mike C."
Date:
Subject: Re: trying to connect to pg from within a local network
Next
From: Kris Jurka
Date:
Subject: Re: determine if a column is UNIQUE using metadata