Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuyqP-0001Cf-2T for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 05:13:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TuyqO-0002jr-3W for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 05:13:52 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuyqM-0002im-Qf for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 05:13:50 +0000 Received: from mail12.ics.ntts.co.jp ([210.232.35.65]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuyqK-0006ad-In for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 05:13:50 +0000 Received: from sadoku34.silk.ntts.co.jp (sadoku34 [10.7.18.34]) by mail12.ics.ntts.co.jp (8.14.4/8.14.4/NTTSOFT) with ESMTP id r0F5De7E001706; Tue, 15 Jan 2013 14:13:40 +0900 (JST) Received: (from root@localhost) by sadoku34.silk.ntts.co.jp (8.13.8/NTTSOFT) id r0F5Decj005655; Tue, 15 Jan 2013 14:13:40 +0900 (JST) Received: from ccmds32.silk.ntts.co.jp [10.107.0.32] by sadoku34.silk.ntts.co.jp with SMTP id QAA05654; Tue, 15 Jan 2013 14:13:40 +0900 Received: from mail147.silk.ntts.co.jp (ccmds32.silk.ntts.co.jp [127.0.0.1]) by ccmds32.silk.ntts.co.jp (8.14.3/8.14.3) with ESMTP id r0F5Dd7F015416; Tue, 15 Jan 2013 14:13:39 +0900 Received: from mail147.silk.ntts.co.jp (localhost.localdomain [127.0.0.1]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with ESMTP id r0F5DboI003369; Tue, 15 Jan 2013 14:13:37 +0900 Received: from ccmds32 (mail145.silk.ntts.co.jp [10.107.0.145]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with SMTP id r0F5DbmJ003366; Tue, 15 Jan 2013 14:13:37 +0900 Message-ID: <50F4E52E.9000603@po.ntts.co.jp> Date: Tue, 15 Jan 2013 14:12:14 +0900 From: Tomonari Katsumata User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Simon Riggs CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7803: Replication Problem(no master is there) References: <50EFCFF5.4040109@vmware.com> <50F00301.1060301@po.ntts.co.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: CC-Mail-V4.3-Client X-CC-Mail-RelayStamp: CC-Mail-V4.3-Server X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, Sorry for late response. (2013/01/11 23:11), Simon Riggs wrote: > On 11 January 2013 12:18, Tomonari Katsumata > wrote: > >> I'm not sure but what about adding the parameter("cascade_mode") on >> recovery.conf ? >> The parameter represents a will to connect to standby server when starting >> as standby. >> If the parameter is set to on, connect to a server forcely like PostgreSQL >> 9.2, >> and if the parameter is set to off, connect to the another standby server is >> refused like PostgreSQL 9.1. > > We added a REPLICATION privelge onto user accounts to control access. > > Perhaps we should add a CASCADE privilege as well, so that we can > control whether we can connect to a master and/or a standby. > > Syntax would be > > ALTER USER foo > [MASTER | CASCADE] REPLICATION > > REPLICATION allows both master and cascaded replication (same as now) > MASTER REPLICATION allows master only > CASCADE REPLICATION allows cascaded replication only > NOREPLICATION allows neither option > This idea seems better than mine. Someone is working for it already ? If not yet, may I try to implement it ? regards, -------- NTT Software Corporation Tomonari Katsumata -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs