Juan Pablo Espino <[EMAIL PROTECTED]> writes:
> I need to write a function that retrieve the name of at least one
> table primary key, if it exists. The only argument passed to the
> function is the table name. I have thought something like this:
You need to be searching the list of indexes, not the attributes per se.
ATExecDropNotNull() might be a useful example.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match