Holger Jakobs schrieb am 20.03.2023 um 15:30: > It's not difficult to write table-valued functions returning the DDL > of database objects, but it's a lot of work. Someone already did the heavy lifting ;) https://github.com/MichaelDBA/pg_get_tabledef