From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Jon Horsman <horshaq@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Permission denied for sequece...
Date: Mon, 21 Aug 2006 18:46:18 -0500
Message-ID: <1156203978.1090.121.camel@state.g2switchworks.com> (raw)
In-Reply-To: <4f4c2a010608211527t702939e1i174729175d9bed73@mail.gmail.com>
References: <4f4c2a010608211203j6591249cifc9c0a793183aee@mail.gmail.com>
<1156193701.1090.13.camel@state.g2switchworks.com>
<4f4c2a010608211527t702939e1i174729175d9bed73@mail.gmail.com>
On Mon, 2006-08-21 at 17:27, Jon Horsman wrote:
> > Column | Type | Modifiers
> > --------+---------+------------------------------------------------------
> > id | integer | not null default nextval('public.real_id_seq'::text)
> >
> > Note that my table, real, has a sequence named read_id_seq. You need to
> > grant all on that as well...
>
> That did it. Thanks a lot. I _never_ would have guessed that and
> don't recall seeing it in the docs, perhaps i missed it.
I do think it's in the docs, but I'm not prepared to bet on it. :) It
is a rather inobvious thing though.
> While on the topic. Is there one blanket command that can be run to
> grant the user permissions to do everything to the db, without making
> that user the owner or a superuser?
No, there is no single statement. But there is pl/pgsql. If you search
the archives there are examples of some fairly simple pl/pgsql scripts
that do just that. There might be provisions for such a built in in
8.2, due out soon. I haven't kept up on new pgsql development since
taking a rather busy job working on 7.4 machines. I'm really hoping to
get an 8.1/8.2 server up and running for work here as a data warehouse
though...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: smarlowe@g2switchworks.com, horshaq@gmail.com
Subject: Re: Permission denied for sequece...
In-Reply-To: <1156203978.1090.121.camel@state.g2switchworks.com>
References: <4f4c2a010608211203j6591249cifc9c0a793183aee@mail.gmail.com> <1156193701.1090.13.camel@state.g2switchworks.com> <4f4c2a010608211527t702939e1i174729175d9bed73@mail.gmail.com> <1156203978.1090.121.camel@state.g2switchworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox