Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E47DE2E005B; Thu, 29 Nov 2007 02:23:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 61296-10; Thu, 29 Nov 2007 02:23:41 -0400 (AST) Received: from mail231.csoft.net (mail231.csoft.net [205.205.221.4]) by postgresql.org (Postfix) with ESMTP id 8AB2B2E0042; Thu, 29 Nov 2007 02:23:42 -0400 (AST) Received: from resin (resin.csoft.net [205.205.221.5]) by mail231.csoft.net (Postfix) with ESMTP id D5E0446B9F; Thu, 29 Nov 2007 01:23:41 -0500 (EST) Date: Wed, 28 Nov 2007 22:23:41 -0800 (PST) From: Jeremy Drake X-X-Sender: jeremyd@resin.csoft.net To: Alvaro Herrera cc: David Fetter , Tom Lane , PostgreSQL Docs , PostgreSQL Patches Subject: Re: [DOCS] Partition: use triggers instead of rules In-Reply-To: <20071129010601.GZ5118@alvh.no-ip.org> Message-ID: References: <20071128202615.GG24146@fetter.org> <21686.1196283184@sss.pgh.pa.us> <20071128205710.GL24146@fetter.org> <24889.1196288258@sss.pgh.pa.us> <20071129005334.GN24146@fetter.org> <20071129010601.GZ5118@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/277 X-Sequence-Number: 4518 On Wed, 28 Nov 2007, Alvaro Herrera wrote: > David Fetter wrote: > > > Greg Sabino Mullane managed to contrive an example where RULEs might > > conceivably be the least-bad way to do this, that being a machine > > where no PLs may be installed. > > Perhaps this just means we should consider installing plpgsql by > default. I have run into this myself, and a patch that I contributed (which made it in to 8.3) made it possible for a database owner to create trusted languages from templates in the default configuration. Which means that if an admin wants to prevent usage of the language, they can revoke the right to create it, but db owners still "opt-in" to any languages they want.