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 1hN0u4-0003u9-7Q for pgsql-committers@arkaria.postgresql.org; Sat, 04 May 2019 20:05:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hN0u2-0002T3-8g for pgsql-committers@arkaria.postgresql.org; Sat, 04 May 2019 20:04:58 +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 1hN0u1-0002SZ-RO for pgsql-committers@lists.postgresql.org; Sat, 04 May 2019 20:04:58 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hN0tu-00009N-80 for pgsql-committers@lists.postgresql.org; Sat, 04 May 2019 20:04:56 +0000 Received: by mail-wr1-x442.google.com with SMTP id c12so12063841wrt.8 for ; Sat, 04 May 2019 13:04:49 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=c9+x7q7di78676KGJsM0YoJZYKsKacKHpklH41j2YTw=; b=abx0JdWmFqUUmQ0ajXHKPN5WcVfcFXssmqNokLst2h3Phu7Nlet6rM0La+Nv5b79ZE d6AhboIzfZC8TskmOGIiMwbulm3AopiDTqezmeH6iHCVCKmmbN45rnicCGeCFpbZ9H8F x+aijsSfWsNgtHTeKB3i+iI6NH0mk+KtQ37uqynoWRuE9h8gBhgQ6FX5bJB95aoz5qvU NxLOqdU76U0HEi49OjVVpucPrR5t+QP7EBCfUKWjftCRr4VqBaiWhk9KTgOurRyZYRtU +Z0Ww6nwu+Zki+c5oHJq8S4XhUpDneJqbVv/S7T+SnN+LKWvPFT1WqmSvNtiM8BtJyru Ibkg== 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:content-transfer-encoding :in-reply-to:user-agent; bh=c9+x7q7di78676KGJsM0YoJZYKsKacKHpklH41j2YTw=; b=IBEJUt66Ub5h4YrccjWGymFMYkLuuZ6Ehz4juYDHsrJjLZdzgjNPrPmMGnwARoQG+4 lDF6/cesgBPCSt3KQSLTLup368IBg3a4+76YQg7M8/TGKH3+CVE9tJnqepJXrrswnvzE shnfJ2IfAgx3qSn2FPYkd4FwdL2SSJakHMXai2tQ9j5N5WJN4ej67fv39eRPl5HTSwv5 iHfkT16w3pvVGnX3CP8FC7ZiGmWcEPl8b6sJYW5KSuSFoYuLwuZUIkxnwbVm5Z1cDh4B yCZcUKA8F5Zk/XM0LJd/y10QfYUMpWJiHIuek2973vnW26cIzejUGYYPyBSYSfvphR77 qmCQ== X-Gm-Message-State: APjAAAUz7FG5YCdzTEKpnXMS+pSedr53TvKC/NvJMRQvMhJOsvDOh2ba Pc39Es5wjfojzuxqdii/rv0gBw== X-Google-Smtp-Source: APXvYqxEtLAnx0xNaEWLyr7XBY5DVgyq5kzlHgc6eICkQpJ+soqoUfG5ZEjouTYYhnmIQeGLLVvAkg== X-Received: by 2002:adf:eb44:: with SMTP id u4mr5149170wrn.83.1557000288513; Sat, 04 May 2019 13:04:48 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id h81sm15339919wmf.33.2019.05.04.13.04.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 04 May 2019 13:04:38 -0700 (PDT) Date: Sat, 4 May 2019 22:04:37 +0200 From: Tomas Vondra To: Magnus Hagander Cc: Tom Lane , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix union for pgstat message types Message-ID: <20190504200437.zqo3vna4lez44b6p@development> References: <20190504154802.q4ezzpkbryw7cngq@development> <6102.1556985252@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, May 04, 2019 at 07:08:10PM +0200, Magnus Hagander wrote: > On Sat, May 4, 2019 at 5:54 PM Tom Lane wrote: > > Tomas Vondra writes: > > On Wed, May 01, 2019 at 10:34:52AM +0000, Magnus Hagander wrote: > >> Fix union for pgstat message types > > > Should the tempfile bit be backported? That message was added in 9.2. > > It's just cosmetic I think.  The main point of having everything in > the union is to make sure the union's size/alignment are sufficient, > but the tempfile message isn't anywhere near creating an issue there. > > That was my thought as well. It's really only needed when we add new > things, to make sure we don't make those mistakes again. And nobody should > be adding new pgstat messages in old branches.  Fine with me, I don't think the backbranches are broken. OTOH it's a minor change that would make the code more similar. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services