Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8A5A163EB29 for ; Tue, 23 Feb 2010 17:11:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41181-05 for ; Tue, 23 Feb 2010 21:11:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1775763EAED for ; Tue, 23 Feb 2010 17:11:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o1NLBIcG016189; Tue, 23 Feb 2010 16:11:19 -0500 (EST) To: P cc: pgsql-admin@postgresql.org Subject: Re: Query DDL Comments? In-reply-to: References: Comments: In-reply-to P message dated "Tue, 23 Feb 2010 14:52:58 -0500" Date: Tue, 23 Feb 2010 16:11:18 -0500 Message-ID: <16188.1266959478@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/185 X-Sequence-Number: 33788 P 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