I have a client using a PostgreSQL database. I'm new to PostgreSQL and need a little help. I need to get a list of primary and foreign keys from all the tables in the public schema. There seems to be inconsistent data in the database. I tried queries from other posts with no success. When I look at the constraints on the table I can see the primary and foreign keys. How can this same information using SQL?