ODBC: how to establish primary key & indexes

Поиск
Список
Период
Сортировка
От Carl Shelbourne
Тема ODBC: how to establish primary key & indexes
Дата
Msg-id 802569C8.004DF48F.00@marconicomms.com
обсуждение исходный текст
Список pgsql-interfaces

I am trying to write a generic ODBC wrapper (on Solaris using unixODBC) in c++
and I need to query the DB to find out what fields are the primary key(s), and
other unique indexes.

I've tried querying pg_indexes but the indexfdef column is of datatype "text",
not a SQL92 standard data type, which is returning a datatype of "-1". I am
assuming I have missed something out in my configuration of the ODBC
interface/driver????

Is there an easy way to query the db to find out the fields that are the primary
key(s) and any other (unique) indexes that have been created using ODBC
queries???

Thanks

Carl




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: RE: ODBC Driver Update...
Следующее
От: Charlie Crissman
Дата:
Сообщение: RE: pgAdmin