Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 109849FB9A6 for ; Tue, 17 Jul 2007 16:33:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 97677-07 for ; Tue, 17 Jul 2007 16:33:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by postgresql.org (Postfix) with ESMTP id AB88B9FB5F1 for ; Tue, 17 Jul 2007 16:33:07 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IAsnC-0000W3-Jq for pgsql-admin@postgresql.org; Tue, 17 Jul 2007 12:33:06 -0700 Message-ID: <11656315.post@talk.nabble.com> Date: Tue, 17 Jul 2007 12:33:06 -0700 (PDT) From: km4hr To: pgsql-admin@postgresql.org Subject: What user privileges do I need to CREATE FUNCTION's? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: km4hr@netscape.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.63 tagged_above=0 required=5 tests=BAYES_50=0.001, DNS_FROM_OPENWHOIS=1.13, WHOIS_MYPRIVREG=1.499 X-Spam-Level: ** X-Archive-Number: 200707/187 X-Sequence-Number: 26168 I'm installing an application that provides a ".sql" script to create tables and other objects in a postgresql database. When I run the script as user "postgres" the script executes without errors. But then all the tables and other objects are owned by "postgres". A user that I created to access the tables, "newuser", doesn't have privileges needed to use them. If I login as "newuser" and execute the install script, I get errors indicating "newuser" doesn't have privileges to CREATE FUNCTION's . How should I execute the install script so that all the objects are owned by "newuser" and the FUNCTIONS are created? What privileges does "newuser" need to create functions? I can't find that described in the postgres manual? thanks -- View this message in context: http://www.nabble.com/What-user-privileges-do-I-need-to-CREATE-FUNCTION%27s--tf4099063.html#a11656315 Sent from the PostgreSQL - admin mailing list archive at Nabble.com.