public inbox for [email protected]  
help / color / mirror / Atom feed
From: Richard Huxton <[email protected]>
To: Olleg Samoylov <[email protected]>
Cc: [email protected]
Subject: Re: BUG #1610: rewrite rule and sequence
Date: Thu, 21 Apr 2005 16:57:51 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Olleg Samoylov wrote:
> The following bug has been logged online:
> 
> Bug reference:      1610
> Logged by:          Olleg Samoylov
> Email address:      [email protected]
> PostgreSQL version: 7.4.7
> Operating system:   Linux debian-amd64
> Description:        rewrite rule and sequence
> Details: 
> 
> Rule on view can't insert in table with "serial" field under not owner. Need
> grant privilege on sequence explicitly.

That's not a bug, it's a feature (as they say).

Although you can automatically generate sequences with the serial pseudo 
-type, they are separate objects. Not only can you create them 
separately from a table, you can have many columns using 
nextval('my_sequence') as their default.

I suppose you could argue that a sequence only used by one table could 
inherit that table's permissions by default, but I can see problems when 
people reorder GRANT statements.

HTH
-- 
   Richard Huxton
   Archonet Ltd



view thread (5+ messages)  latest in thread

reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: BUG #1610: rewrite rule and sequence
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox