X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5F99C53678 for ; Thu, 21 Apr 2005 12:57:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17648-04 for ; Thu, 21 Apr 2005 15:57:54 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 03B0B5365A for ; Thu, 21 Apr 2005 12:57:53 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 95E0843BB97; Thu, 21 Apr 2005 16:57:40 +0100 (BST) Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 48C3B15928; Thu, 21 Apr 2005 16:57:51 +0100 (BST) Message-ID: <4267CD7F.3090100@archonet.com> Date: Thu, 21 Apr 2005 16:57:51 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Olleg Samoylov Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #1610: rewrite rule and sequence References: <20050421121944.15E03F0B53@svr2.postgresql.org> In-Reply-To: <20050421121944.15E03F0B53@svr2.postgresql.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/145 X-Sequence-Number: 11597 Olleg Samoylov wrote: > The following bug has been logged online: > > Bug reference: 1610 > Logged by: Olleg Samoylov > Email address: olleg@mipt.ru > 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