Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8yPc-0001Dn-Sy for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2013 20:08:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V8yPc-0007zR-Ct for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2013 20:08:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8yPb-0007zJ-B9 for pgsql-hackers@postgresql.org; Mon, 12 Aug 2013 20:08:19 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8yPW-0001rE-Ct for pgsql-hackers@postgresql.org; Mon, 12 Aug 2013 20:08:17 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7CK88Ok026427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Aug 2013 16:08:09 -0400 Received: from nb.usersys.redhat.com (ovpn-116-54.ams2.redhat.com [10.36.116.54]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7CK88I9020938; Mon, 12 Aug 2013 16:08:08 -0400 From: Pavel Raiskup To: Bruce Momjian Cc: tgl@sss.pgh.pa.us, giomac@gmail.com, PostgreSQL-development Subject: Re: [PATCH] Re: [BUGS] BUG #7815: Upgrading PostgreSQL from 9.1 to 9.2 with pg_upgrade/postgreql-setup fails - invalid status retrieve Date: Mon, 12 Aug 2013 22:08:07 +0200 Message-ID: <2173089.HqHtjyoHSD@nb.usersys.redhat.com> Organization: Red Hat User-Agent: KMail/4.10.5 (Linux/3.10.4-300.fc19.x86_64; KDE/4.10.5; x86_64; ; ) In-Reply-To: <20130812193347.GD12510@momjian.us> References: <20130124203725.GA21914@momjian.us> <1376303470-17225-1-git-send-email-praiskup@redhat.com> <20130812193347.GD12510@momjian.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Pg-Spam-Score: -9.7 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > The patch moves the atexit setting up, as you suggested, but only does > that when pg_ctl succeeds (we know we started the server), Yes, of course! > PG 9.1+ will allow pg_ctl -w start to succeed even if there are > permissions problems; earlier versions will not and will keep the > server running --- the user will have to stop the server after > pg_upgrade says it is running. This makes it a complex, really.. We may not easily make the stop_postmaster resistant to non-running server. Thus your solution must be good enough. > I am not going to backpatch this beyond 9.3 as it is risky code. I have > improved the comments in this area. Agree, it is OK for me =E2=80=94 thanks for your work. Pavel --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers