Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQItD-0006ej-W8 for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jun 2017 19:44:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dQItC-0005gx-KQ for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jun 2017 19:44:38 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dQItB-0005fU-2u for pgsql-hackers@postgresql.org; Wed, 28 Jun 2017 19:44:37 +0000 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dQIt3-0004jD-MM for pgsql-hackers@postgresql.org; Wed, 28 Jun 2017 19:44:36 +0000 Received: by mail-qk0-x232.google.com with SMTP id 16so59931016qkg.2 for ; Wed, 28 Jun 2017 12:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=AsTKMF0X/B5S1HdLtglyb7UGIeLytsFYKXpzv6cPmYE=; b=haSmEpM8cOzOlecBOW2Mkyh91gq8WkNiCMztZQR0uE4wDJNQmDjgC+8pzxxHIePvZ9 f2w9b3dPipZ6tU32OyKjSFmXAKU/a5Grb87la/O9YGm5Z1rSn61fWt1kXl1surkEq1OY /pveD5Txb8ePlUHa4P6lmS2drXbA3B4SU7tZMptfZle4B6Hu1SKx0fJwJN0bKEPrw1KC cuHHF05fQIshBosF05e2y1YvvT77dm83iKjTfqcidiI9o2NmwWoCZTOJL/vuULwddBKi LIk2s3rAqQzKafRCum1/tLlP2aPwrLvLu7fgFTKU+PRRtlkv2P7J398yJGj8erPMUTFi b7AA== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AsTKMF0X/B5S1HdLtglyb7UGIeLytsFYKXpzv6cPmYE=; b=k4XhBMWdBfvqxwmRwilX+OqDejh7r1KY/0o8DYLgB53Y69cn/XWQdRCDbwFfJcJSEr 142SHzO/OtkmJh0PLXFOMpuqpAppz2jmS9bf4jIZiJ5BnGn27esB4FVTwpwVvl1mjzE0 EWJ7Pd4ocM0Bx6Xg1EX/JSd3gcAV2vchjTKCYS9vX+SLzcVG/3T7AzwRknUQGO/rAmC0 48JoXH/o2InC48Oupk++1h+sdLuamXbpmdJ1cNVhou3paH9obrn892ZikmiVUZ4ZbVqc n215zFn1b12i3IyXYm7L8KjW5Wpa8PdSSM6MprGY28E7ODfm/tcrSR1EFURJxoH4of+l xR0w== X-Gm-Message-State: AKS2vOw1dNFIyP2PJRfswgQKIr2sH6oioy3WkhlPhjKWtQx0t8DcurvD 5fG0oYcOy+WhKQpO X-Received: by 10.55.198.156 with SMTP id s28mr14900912qkl.222.1498679067564; Wed, 28 Jun 2017 12:44:27 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id f124sm2183124qkj.57.2017.06.28.12.44.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 12:44:27 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 337F2AA1; Wed, 28 Jun 2017 15:44:25 -0400 (-04) Date: Wed, 28 Jun 2017 15:44:25 -0400 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , Jeff Janes , Michael Paquier , PostgreSQL mailing lists Subject: Re: Reducing pg_ctl's reaction time Message-ID: <20170628194425.my75yb4lp5aerm7x@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <318.1498674547@sss.pgh.pa.us> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) 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 Tom Lane wrote: > Andres Freund writes: > So when I removed the miscadmin.h include, I found out that pg_ctl is > also relying on PG_BACKEND_VERSIONSTR from that file. > > There are at least three things we could do here: > > 1. Give this up as not worth this much trouble. > > 2. Move PG_BACKEND_VERSIONSTR into pg_config.h to go along with the > other version-related macros. pg_config.h sounds like a decent enough solution. It's a bit strange this hasn't come up before, given that that symbol is used more in frontend environ than backend. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers