Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9BGdWn10432 for ; Thu, 11 Oct 2001 12:39:32 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f9BGd1I10582; Thu, 11 Oct 2001 12:39:01 -0400 (EDT) To: Dong B Calmada cc: pgsql-admin@postgresql.org Subject: Re: how to create function/procedure for commenting multiple objects (e.g., columns) In-reply-to: <20011011154856.A892@dongski.popdem.org> References: <20011011154856.A892@dongski.popdem.org> Comments: In-reply-to Dong B Calmada message dated "Thu, 11 Oct 2001 15:48:56 +0800" Date: Thu, 11 Oct 2001 12:39:01 -0400 Message-ID: <10579.1002818341@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200110/98 X-Sequence-Number: 2344 Dong B Calmada writes: > create function comment_columns(text,text) returns text as 'comment on $1 is $2' language 'sql'; > The attempt produced an error like: error at or near '$1'. Try using plpgsql's EXECUTE to do this. regards, tom lane