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 1hMwtd-0000Vy-J9 for pgsql-committers@arkaria.postgresql.org; Sat, 04 May 2019 15:48:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMwtc-0000js-2X for pgsql-committers@arkaria.postgresql.org; Sat, 04 May 2019 15:48:16 +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 1hMwtb-0000jO-Iw for pgsql-committers@lists.postgresql.org; Sat, 04 May 2019 15:48:15 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMwtT-00035n-UJ for pgsql-committers@lists.postgresql.org; Sat, 04 May 2019 15:48:14 +0000 Received: by mail-wr1-x441.google.com with SMTP id l2so11563257wrb.9 for ; Sat, 04 May 2019 08:48:07 -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:in-reply-to:user-agent; bh=nvEiuZd+5Cle8TBN3EamAH1f9PmtOLf1Ta2h1kCjizw=; b=XaUKwxVm8HY1z9kyWbEbyGXOwi5lLoKfEx9pr7sXAP4ggencOqtRq41EUA+uWk5uRs wmK5qj/DdVy3iSKDcDPQHciHbNfuXG3yifiGQ6eq+ODxcWtInJip59oBEC4w0Yxk0EaK GcN4JwRwfHbFTHIqlXXaHF1jvAzIL5DfOo+wUhZ0Q/LFgD2gUIGkv5jANpSNwFzlCb2l sDSY3VvFlGj9h5M2MVmGIy7VVdjeyU03r/vlPC3YTECfJ17ig4sYr84UeCALyc7dhumf e0zjd839R6iy3jGeCjNKjwF81hdF66l+z/ydyF/xg4wDLw5cad7a7PzlYRcfFxEzMnm6 4mRQ== 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=nvEiuZd+5Cle8TBN3EamAH1f9PmtOLf1Ta2h1kCjizw=; b=JV5SMuyT38cRuCdU5o/ORGhkyelXU9pnLmgHC3YjPwBPfkEr7nA09eGZcJq2Tmruf7 /sQkA1hunkv+pdEB0pwPmTi9O6mzDElsgbmlsS2P5lTRGzCpUrRY7uGXCFcmehlydmcm 5XkNA32mByQwaBPcQfPd8fY1WEaG/ofbeHtS4I5/CberliRVaX3nXPVWClyJwdISC7UT 3m55+Ukl9P2e+Ui4a97AeIjMh0QZ6Ic2/9Qod/FkUzV5ndNktZIE3/wXb9P9+9ZHeIFA syxanD/fzafZJirgE6uLPcR7ij9KC781Ga61iUbKKVKNjQuwyM4MqeUUYHIG8YoPRSEx L4xQ== X-Gm-Message-State: APjAAAVxBF5PbC70frawTEbZSjYMd19tuJffIlOHCAqcQk62Rp01qjy1 c+9z7iBe0X0KezOirvoNTqv54FzLvPE= X-Google-Smtp-Source: APXvYqzTw/V1xMcHoP/1+t8YpJUW7Ivj9e/NECJHS3jfm65vKr0bT5udegydAQLIEAMVN0B2wOHPdA== X-Received: by 2002:a5d:4243:: with SMTP id s3mr10740247wrr.277.1556984885695; Sat, 04 May 2019 08:48:05 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id x17sm2824478wru.27.2019.05.04.08.48.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 04 May 2019 08:48:04 -0700 (PDT) Date: Sat, 4 May 2019 17:48:02 +0200 From: Tomas Vondra To: Magnus Hagander Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix union for pgstat message types Message-ID: <20190504154802.q4ezzpkbryw7cngq@development> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, May 01, 2019 at 10:34:52AM +0000, Magnus Hagander wrote: >Fix union for pgstat message types > >The message type for temp files and for checksum failures were missing >from the union. Due to the coding style used there was no compiler error >when this happend. So change the code to actively use the union thereby >producing a compiler error if the same mistake happens again, suggested >by Tom Lane. > Should the tempfile bit be backported? That message was added in 9.2. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services