X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 787FC47633A for ; Wed, 23 Apr 2003 14:06:01 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 9F8B4476304 for ; Wed, 23 Apr 2003 14:04:51 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h3NI4gm06534; Wed, 23 Apr 2003 14:04:42 -0400 (EDT) From: Bruce Momjian Message-Id: <200304231804.h3NI4gm06534@candle.pha.pa.us> Subject: Re: GRANT on all tables? In-Reply-To: To: codeWarrior Date: Wed, 23 Apr 2003 14:04:42 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-26.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/312 X-Sequence-Number: 8467 codeWarrior wrote: > GRANT ALL TO PUBLIC; Uh, that doesn't work, and actually we don't have a global 'give all permissions on all tables' capability. > > > "dudsen" wrote in message > news:1050499026.680723@kalvebod.groenjord.dk... > > How do I GRANT an user privileges for all tables in an database with one > > command, as it is now i need to specify the name of each table. > > I want to write something like > > GRANT SELECT,INSERT ON mydatabase TO user; this doesn't work but are there > a > > way of getting someting similar to work? > > > > -- > > Daniel Udsen > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073