P <user2037(at)live(dot)com> writes:
> Is there a way to query the DDL comments for tables or databases?
Well, there's psql's \dd, or you could use obj_description and related
functions, or you could look directly at the pg_description and
pg_shdescription catalogs.
regards, tom lane