X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5443ED1B381 for ; Thu, 1 Jul 2004 00:04:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32055-09 for ; Thu, 1 Jul 2004 03:03:27 +0000 (GMT) Received: from mako1.telstra.net (mako1.telstra.net [203.50.0.28]) by svr1.postgresql.org (Postfix) with ESMTP id 3770DD1B25F for ; Thu, 1 Jul 2004 00:01:32 -0300 (ADT) Received: from telstra.net (xena.telstra.net [203.50.0.233]) by mako1.telstra.net (8.12.9/8.11.1) with ESMTP id i6131LB4050480 for ; Thu, 1 Jul 2004 13:01:22 +1000 (EST) (envelope-from jc@telstra.net) Message-ID: <40E37E3F.2050400@telstra.net> Date: Thu, 01 Jul 2004 13:00:15 +1000 From: Justin Clift User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040406 X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL Hackers Mailing List Subject: Adding column comment to information_schema.columns Content-Type: multipart/mixed; boundary="------------090004010004040702040508" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/2 X-Sequence-Number: 55563 This is a multi-part message in MIME format. --------------090004010004040702040508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi all, Not sure how worthwhile others will find this small patch (to CVS HEAD), but we found it useful. It adds the column comments to the information_schema.columns view. Hope it's useful. :-) Regards and best wishes, Justin Clift --------------090004010004040702040508 Content-Type: text/plain; name="postgresql_column_comment.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="postgresql_column_comment.diff" *** information_schema.sql.orig 2004-07-01 11:59:26.000000000 +1000 --- information_schema.sql 2004-07-01 12:33:01.000000000 +1000 *************** *** 442,448 **** CAST(null AS cardinal_number) AS maximum_cardinality, CAST(a.attnum AS sql_identifier) AS dtd_identifier, ! CAST('NO' AS character_data) AS is_self_referencing FROM (pg_attribute a LEFT JOIN pg_attrdef ad ON attrelid = adrelid AND attnum = adnum), pg_class c, pg_namespace nc, pg_user u, --- 442,450 ---- CAST(null AS cardinal_number) AS maximum_cardinality, CAST(a.attnum AS sql_identifier) AS dtd_identifier, ! CAST('NO' AS character_data) AS is_self_referencing, ! ! col_description(a.attrelid, a.attnum) AS column_comment FROM (pg_attribute a LEFT JOIN pg_attrdef ad ON attrelid = adrelid AND attnum = adnum), pg_class c, pg_namespace nc, pg_user u, --------------090004010004040702040508--