X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 72FFE8B9E8F for ; Thu, 3 Feb 2005 13:32:22 +0000 (GMT) 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 31802-04 for ; Thu, 3 Feb 2005 13:32:11 +0000 (GMT) Received: from hotmail.com (bay101-f25.bay101.hotmail.com [64.4.56.35]) by svr1.postgresql.org (Postfix) with ESMTP id 075658B9D95 for ; Thu, 3 Feb 2005 13:32:13 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 3 Feb 2005 05:32:01 -0800 Message-ID: Received: from 213.16.35.130 by by101fd.bay101.hotmail.msn.com with HTTP; Thu, 03 Feb 2005 13:31:47 GMT X-Originating-IP: [213.16.35.130] X-Originating-Email: [pmanchev@hotmail.com] X-Sender: pmanchev@hotmail.com In-Reply-To: <20050203062107.GD46692@winnie.fuhr.org> From: "Peter Manchev" To: mike@fuhr.org Cc: pgsql-sql@postgresql.org Subject: Re: plpgsql functions to 'C' functions Date: Thu, 03 Feb 2005 05:31:47 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 03 Feb 2005 13:32:01.0413 (UTC) FILETIME=[BDFDE350:01C509F4] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.688 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER X-Spam-Level: X-Archive-Number: 200502/86 X-Sequence-Number: 20197 I believe the functionality I need (hiding the function code from users) will be provided with the implementation of the the following item from the Postgresql todo list: SERVER-SIDE LANGUAGES -- Add Oracle-style packages May be another future functionality will also help out, especially if the permission system can hide all objects but the function signatures from non-authorized: -- Set proper permissions on non-system schemas during db creation Until then, I have to figure out a way to implement it with the resources available... like (hand) re-coding the plpgsql functions to 'C' functions :/ Here is where I'd like to get your expert opinions (thank you very much in advance for all your efforts), so I can get started fast. Thanks, Peter >From: Michael Fuhr >To: Peter Manchev >CC: pgsql-sql@postgresql.org >Subject: Re: [SQL] plpgsql functions to 'C' functions >Date: Wed, 2 Feb 2005 23:21:07 -0700 ... >On Wed, Feb 02, 2005 at 05:57:10AM -0800, Peter Manchev wrote: > > > I would like to convert all my plpgsql functions to their 'C' equivalent > > coded functions. > >Why? What problem are you trying to solve? > > > Does anyone have experience in this matter? > >See "C-Language Functions" in the documentation: > >http://www.postgresql.org/docs/8.0/static/xfunc-c.html > >If you're having a specific difficulty then please show the code >you're using, explain what you want it to do, and describe what >acutally happens. > >-- >Michael Fuhr >http://www.fuhr.org/~mfuhr/