0

Well, I need to list all tables of my postgres database in logical order to delete data without any problems with of foreign keys.

How can I find that kind of information?

Only I need to list tables name. No more information.

Thanks in advance

Guido
  • 103
  • 12

1 Answers1

1

If you need to delete data then there is the following similar question: delete data cascade

If you would like to drop tables then use drop table x cascade? docs Using CASCADE postgres will automatically drop all dependent objects - tables, views, ...

Community
  • 1
  • 1
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155