From: Dong B Calmada <dongski@popdem.org>
To: pgsql-admin@postgresql.org
Subject: how to create function/procedure for commenting multiple objects (e.g., columns)
Date: Thu, 11 Oct 2001 15:48:56 +0800
Message-ID: <20011011154856.A892@dongski.popdem.org> (raw)
Hi colleagues,
I wanted to create a procedure or function that would facilitate my task of commenting multiple columns.
I tried to do so with the following script:
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'.
I even tried to create a C solution for this but it only caused a segmentation fault to the backend side.
Please help.
--
DONG B. CALMADA
Polmap Chief Information Officer
Institute for Popular Democracy
http://www.ipd.ph
Tel. (63-2) 4346674
Fax (63-2) 9262893
Mobile Phone No. 0917-9339099
Alternate email addresses:
dongski4martin@yahoo.com
dongski@calban.org
-----------------------------------
Information is power! Set it free!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: dongski@popdem.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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox