0

I found someone asking the exact question I have, except the question and answers appear to be specific to SQL Server, even though that fact was ommited.

Here's the question Return a count of all foreign keys across all tables in database without a cursor

And what looks to be an elegant answer: https://stackoverflow.com/a/28729413/1402498

But I need to do this in Postgres. Is there an elegant way to accomplish the same thing in Postgres?

JamesHoux
  • 2,999
  • 3
  • 32
  • 50
  • 1
    I think the answers here might be useful to you: https://stackoverflow.com/questions/1152260/postgres-sql-to-list-table-foreign-keys – Blue Star Aug 23 '20 at 01:28
  • Edit your question and provide sample data, desired results, and an explanation *in the question*. Link-only questions are frowned upon. – Gordon Linoff Aug 23 '20 at 01:35

0 Answers0