I would like to version control PostgreSQL schemas with the COMMENT ON
syntax (whether that's a good practice is another question) but I'm not sure how to retrieve these comments later on.
There's quite some writing around how to retrieve database and column comments, not so much about schemas.
Any ideas?