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 1gwDJ0-0003fr-MZ for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2019 21:51:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwDIz-00085F-Dr for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2019 21:51:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwDIz-00082G-3x for pgsql-bugs@lists.postgresql.org; Tue, 19 Feb 2019 21:51:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwDIw-0002E9-KL for pgsql-bugs@lists.postgresql.org; Tue, 19 Feb 2019 21:51:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1JLpkjk000495; Tue, 19 Feb 2019 16:51:48 -0500 From: Tom Lane To: eric.katchan+postgres@concordia.ca cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15643: Problem using PGAdmin 4.2 to connect to postrgres hot standby In-reply-to: <15643-944c1ac9f8108278@postgresql.org> References: <15643-944c1ac9f8108278@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 19 Feb 2019 20:46:19 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <493.1550613106.1@sss.pgh.pa.us> Date: Tue, 19 Feb 2019 16:51:46 -0500 Message-ID: <494.1550613106@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > I have pgAdmin 4.2 installed on my windows machine. I am trying to connect > to our hot standby server with pgAdmin and I get the following Error: > ERROR: cannot execute SELECT in a read-only transaction > My DBA has indicated that when I attempt to connect to the server I am > attempting the following SQL: > < 2019-02-19 14:14:04.578 EST > STATEMENT: SET DateStyle=ISO; SET > client_min_messages=notice;UPDATE pg_settings SET setting = 'escape' > WHERE name = 'bytea_output';SET client_encoding='UNICODE'; Yeah, this is a previously-reported pgAdmin bug: it shouldn't be using that query when it doesn't yet know if the target server is read-only. You'd have to go ask on their mailing lists as to what the timetable for fixing it is. regards, tom lane