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 1hGCkD-000379-Sh for pgsql-committers@arkaria.postgresql.org; Tue, 16 Apr 2019 01:18:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGCkC-0002LW-M8 for pgsql-committers@arkaria.postgresql.org; Tue, 16 Apr 2019 01:18:40 +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 1hGCkC-0002LP-BS for pgsql-committers@lists.postgresql.org; Tue, 16 Apr 2019 01:18:40 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGCk5-0005TX-TE for pgsql-committers@lists.postgresql.org; Tue, 16 Apr 2019 01:18:39 +0000 Received: by mail-pl1-x636.google.com with SMTP id w23so9459255ply.4 for ; Mon, 15 Apr 2019 18:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0DStSxuu6DxfGN9OMKVFrw61OBxEi+VAb5ZkQ3xrlAE=; b=f5+buHZqpXwyThW9uAqyFqnyWiR7U2m+o0U+i7dp3SGJm4jzrDGLTkkHFKs37qD40L 8qbQMKRJA5qpx8wHVW84ktpNA2KNYBg+FfPugRz8K+g+0hBGltFAi+w3S2zN/cjIpc3M b8jgDeLZ9yUYfiMN/UVsn8KgQDdk6bNim+TfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0DStSxuu6DxfGN9OMKVFrw61OBxEi+VAb5ZkQ3xrlAE=; b=DjI4e9bvO4HXbS9qJoMFtCc2hsD+cViCZGDyKc7NenguzGYtbe1Xc0Jonhs3bIl7Lq Osf95LGSBtH/Is6ISaXm0Lr41We5VHAJ7omreEyaJZVbmN2NsFBjLU6JhiKMMmViwtsA V3mwsNKpYbKkfBFsYUTIEoCJc90phZCSxaSM3ePiqGElWtnVs+yOQvtTSvLfixdJn7Mt hmpooaaDS940JceUBOeA+yIyFfynqat2M5/8y6n01lsP7ENxt6RKATLl1DC3gZHx55NC HacEFIidpRsHGET+nBIhm12CYI5IdYHz58xXLPwBE6iemS5jRroe6DB2SrRuQgNPUzM/ WE2Q== X-Gm-Message-State: APjAAAU7ECiSROuyme9HfcYquHbjWSWJ6iPIwQe4pKdf6ID/JIHaHaCA ky1rwr1E+89b4bbUdQC9njpAxQ== X-Google-Smtp-Source: APXvYqzCvTX6Gehh2FE8dtfJXF62uKwJgAYB7fTeqSKab+TCgfa6cjt5U256GWcFmI243fVII7HJaQ== X-Received: by 2002:a17:902:b484:: with SMTP id y4mr78529594plr.88.1555377512949; Mon, 15 Apr 2019 18:18:32 -0700 (PDT) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id w11sm41548858pfi.37.2019.04.15.18.18.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 18:18:32 -0700 (PDT) Date: Mon, 15 Apr 2019 18:18:30 -0700 From: Noah Misch To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Consistently test for in-use shared memory. Message-ID: <20190416011830.GB3296237@rfd.leadboat.com> References: <26478.1555373328@sss.pgh.pa.us> <20190416005019.GA3296237@rfd.leadboat.com> <28362.1555375956@sss.pgh.pa.us> <28797.1555376505@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28797.1555376505@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Apr 15, 2019 at 09:01:45PM -0400, Tom Lane wrote: > Noah Misch writes: > >> Perhaps I should write the 'SELECT 1 + 1' to a regular file and redirect input > >> from that file. > > Actually ... we don't need to run a query at all do we? No. We expect never to run one; it was there for the unexpected case of "postgres --single" startup succeeding. I pushed a change to close the stdin of "postgres --single" instead of writing to it. I probably worried that "postgres --single" would not tolerate that, but it seems to.