Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 78B21634294 for ; Thu, 4 Jun 2009 05:34:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 02419-04 for ; Thu, 4 Jun 2009 05:34:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136082.authsmtp.co.uk (outmail136082.authsmtp.co.uk [62.13.136.82]) by mail.postgresql.org (Postfix) with ESMTP id E607A634280 for ; Thu, 4 Jun 2009 05:34:41 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n548YbSR093895; Thu, 4 Jun 2009 09:34:37 +0100 (BST) Received: from [192.168.0.5] (85-211-225-42.dyn.gotadsl.co.uk [85.211.225.42]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n548YZV4038934; Thu, 4 Jun 2009 09:34:36 +0100 (BST) Subject: Re: [COMMITTERS] pgsql: Fix LOCK TABLE to eliminate the race condition that could make it From: Simon Riggs To: Bruce Momjian Cc: Tom Lane , pgsql-hackers@postgresql.org In-Reply-To: <200906021833.n52IXLx26557@momjian.us> References: <200906021833.n52IXLx26557@momjian.us> Content-Type: text/plain Date: Thu, 04 Jun 2009 09:38:12 +0100 Message-Id: <1244104692.23910.139.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 8963dcfa-50e2-11de-98d8-002264978518 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaAFbZ0xf HGQLW11EUFR7Wmd/ aAwfZQBDYEtPQQdo VVZNQE1QEQdtHhxP WBsaWnAYEQFGe3Z5 ZkIsX3JSWgpyfEB+ Fh0CRHADZTJidWEe BBVFfgsAeB5Kfh1H bFR2U3sIYG1JBC9q VzwTFhsSEA9kHWxm aSYoCHMufWsxJQt0 Xx8ZBDF9VWMEV20X CDcFYmI1NmI8elk1 eVYlWFcZNRYOB0VC H0wvYTVQLFRJTC0t AQJGXEkYWCFdSDsU CRo1JhMABzVRV2JZ GCNS X-Authentic-SMTP: 61633235383639.pelican.dmpriest.net.uk:1562/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. 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: 200906/396 X-Sequence-Number: 139451 On Tue, 2009-06-02 at 14:33 -0400, Bruce Momjian wrote: > Tom Lane wrote: > > Simon Riggs writes: > > > If we're going to require cascaded permissions like this, would it make > > > sense to make GRANT cascade down the inheritance tree also? > > > > That's been discussed before. I forget whether we decided it was a good > > idea or not, but in any case it looks like a new feature not a bug fix. > > Is this a TODO? Yes. Whatever was discussed before was prior to the changes to make TRUNCATE and LOCK TABLE cascade. The cascading will fail without appropriate permissions, so GRANT should work that way also, now. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support