Sergey Karin schrieb:
>
> Yes, it is not a problem via psql.
>
> But I want to detect primary key via libpq (e.g using select commands)
>
Look into informational-schema
or start psql with the option -e
then use \d+ and see what it prints :-)
Regards
Tino