Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5D2A963EA93 for ; Mon, 15 Mar 2010 03:26:15 -0300 (ADT) 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 62711-06 for ; Mon, 15 Mar 2010 06:26:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moon.antora.ru (moon.antora.ru [89.111.189.180]) by mail.postgresql.org (Postfix) with ESMTP id C83EE63EA62 for ; Mon, 15 Mar 2010 03:26:04 -0300 (ADT) Envelope-to: pgsql-sql@postgresql.org Received: from moon.inner.space ([10.1.1.5] helo=moon.antora.ru) by moon.antora.ru with esmtp (Exim 4.67) (envelope-from ) id 1Nr3kY-0003N8-40 for pgsql-sql@postgresql.org; Mon, 15 Mar 2010 09:26:02 +0300 Received: from [192.168.1.107] [94.233.217.115] by moon.antora.ru (Axigen) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA id 0915CF; Mon, 15 Mar 2010 09:26:01 +0300 Message-ID: <4B9DD2D1.1050004@bankir.ru> Date: Mon, 15 Mar 2010 09:25:21 +0300 From: silly sad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100111 Thunderbird/3.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Private functions References: <4B9BD20B.9090601@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 6bd252e33454d3e49d8f56ae9eebb1ce 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: 201003/73 X-Sequence-Number: 33780 On 03/14/10 06:21, Jasen Betts wrote: > On 2010-03-13, Gianvito Pio wrote: >> Hi all, >> is there a way to write a function that can only be called by another >> function but not directly using SELECT function_name ( )? > > not really. > > but there may be another way to get the effect you want. > read the section SECURITY DEFINER and GRANT and REVOKE and CREATE USER