Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9453A64FC91 for ; Tue, 18 Nov 2008 01:45:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60929-05 for ; Tue, 18 Nov 2008 01:45:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by mail.postgresql.org (Postfix) with ESMTP id E75FB64FD03 for ; Tue, 18 Nov 2008 01:45:23 -0400 (AST) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id C04735C0F4; Tue, 18 Nov 2008 14:45:18 +0900 (WST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id A10F61E0435; Tue, 18 Nov 2008 14:45:18 +0900 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HpovUTaLCzqC; Tue, 18 Nov 2008 14:45:18 +0900 (WST) Received: from [192.168.44.80] (203-59-94-220.perm.iinet.net.au [203.59.94.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTP id F11A61E0434; Tue, 18 Nov 2008 14:45:17 +0900 (WST) Message-ID: <4922566D.2070106@postnewspapers.com.au> Date: Tue, 18 Nov 2008 14:45:17 +0900 From: Craig Ringer User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Gustavo Rosso Cc: pgsql-general@postgresql.org Subject: Re: ERROR References: <492188D2.2050805@sadaic.org.ar> In-Reply-To: <492188D2.2050805@sadaic.org.ar> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/774 X-Sequence-Number: 140492 Gustavo Rosso wrote: > I create a db wiht user postgres, but other users can't no create > tables, and I give all privileges. > > (banco is my db) > > grant all on database banco to public; > grant create on database banco to public; > > This is the error: > *ERROR: must be owner of relation (table)* The user running the GRANT command must be the table owner or (I think) a database superuser. For table creation, you may need to GRANT the CREATE permission (or ALL permissions) on the `public' schema. I can't remember off the top of my head. -- Craig Ringer