Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1JoG-000758-L2 for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 23:49:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1JoE-0006gt-D8 for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 23:49:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1JoE-0006gm-4s for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 23:49:18 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Jo9-0002Fa-Vv for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 23:49:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1A33A250BA; Tue, 5 Mar 2019 18:49:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 05 Mar 2019 18:49:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=k 6RSPSbcSmvWIJttuuZFfZJB6KijMpu/6dAu/+H7gR8=; b=qP+aH7gXAPkNNVw6U bvGVnFfwSCxCvCXkahx4wo8PDdiz8y1fQd2X534Woqyf4ueQ3BAVm2Hihnow6O/L xP4leeffMBw9EFQjpAybrpxXzpdAaOte880lL63KJGd1Kcn4fXtS4gqTkHlfDLNw gIFJ0ugjOCcHaXJwI4DEDL/ESvHJLmrlCAWdC3C37CnJ93wVv2lbnbzvCFoc4WKr Ivh7XwYo6ZIH4SnlFpyeEJrWUdqgBMvgNziWJnSJJm4Vx83WWujt4ikGsW6Fptd+ xi0+1R5nJZJdAlHc/H+papYXGKeTSk8M6GfKzEsUcWoIwwQMw3219IsMK7+t7CAB /u92A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=k6RSPSbcSmvWIJttuuZFfZJB6KijMpu/6dAu/+H7g R8=; b=l9nDX4Jw4VPmhmRuE0QhVVJTLVSO5Z+NTRe74coFf0cj7z8wEJlorX02g gaNoJOzV/jHrGW3nV8p3tU6CLyo/fln5Diks57V8eBt+Saup2JRPYJhJx0y+76SK J/+X9rEOzLvEEt5rFTmWyLZxFtzR06OkXEPRWVjHDYOKXOb2yQBLRKhFQ1UgtHY/ Ih0Wcxa0jUVKqAWKLsJOifRvCeOlg4NLF3odg0OvaKPKZntSrv6WBE33qP8EcRqE DBUo9ZBQT+AB8EkpU6vbX9cSe0jWALCjVE0Yp5AM9Zzb3g6Q/OkaFOxCB3UDMh9o 5aFnFDiICmTMcC1ptuCacdrZrvtWg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfeeggdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefheenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 33EB2E4362; Tue, 5 Mar 2019 18:49:11 -0500 (EST) Subject: Re: write on standby To: Julie Nishimura , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <24a705d3-4fc0-c771-589c-895915946cdf@aklaver.com> Date: Tue, 5 Mar 2019 15:49:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/5/19 3:34 PM, Julie Nishimura wrote: > Hello there, > Is it possible for a test app to connect to the standby dB of an > active-Standby dB pair?  While both continue to be connected and > replicating? What if it’s needed to write tmp tables that are later > dropped? Can it be done in hot standby scenario on standby? Version is 9.6.2 No: https://www.postgresql.org/docs/9.6/hot-standby.html 26.5.1. User's Overview In particular: "Data Definition Language (DDL) - CREATE, DROP, ALTER, COMMENT. This restriction applies even to temporary tables, because carrying out these operations would require updating the system catalog tables." > > Thanks -- Adrian Klaver adrian.klaver@aklaver.com