I would like to make correction in triggers, but there are like 200-300 cases of this issue - far too much to do it manually. Is there any table with whole db code in Postgresql where I could just find all their definitions and correct them all at the same time?
That's probably beginner question (I know there's table like that in Oracle, but I'm new to Postgresql) but I can't seem to find it neither in web nor on my own.
pg_dump -U the_user --schema-only the_dbname >>textfile.sql, and use the contents of the textfile. The textfile will contain all the DDL, including tables, indexes, views, functions, but these are easy to delete from the textfile.>>textfile) There is also an--file=FILENAMEoption/flag to the pg_dump command