Open Jaymon opened 1 year ago
Looks like information_schema.columns
doesn't give primary key information. I could combine the output of information_schema.columns
with information_schema.table_constraints
to make this work but I'm not sure it's worth it.
This is the postgres wiki solution on getting primary key
via
This seems way better than the horrible query I'm using right now
Search