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 1iowEA-0005bV-A1 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2020 21:17:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iowE9-0006d4-3b for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2020 21:17:25 +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 1iowE8-0006cx-Ns for pgsql-hackers@lists.postgresql.org; Tue, 07 Jan 2020 21:17:24 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iowE4-0004Qb-MR for pgsql-hackers@postgresql.org; Tue, 07 Jan 2020 21:17:23 +0000 Received: by mail-qv1-xf44.google.com with SMTP id p2so499446qvo.10 for ; Tue, 07 Jan 2020 13:17:20 -0800 (PST) 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=MrQ7lowoA59/3ujs3YT0SrCdq2Hd6tCfda69jh0pPjo=; b=G85J41h4jNny6l0P/xWj0jWL5h+kAeqd39096sIx6edoaVTiTeyiOK1Cul7p/G68t/ fTq9GXUtekXjrBRoqLX7gUuW6szIV7pZWmoZBXm5xDIvmAFNnbjFlUkEV/bodV1Csa/M d6WKzv/Ypn96HiPsevJHDwuete1UIbveRszCPuuj1UnLDkT32hVdm6CS/26QG4F+Lj0d 1UxlzqZzxWUX4nS3SeUO4r7s7i/RpfJMKWY0K8TMSsTs2gVk8dMV+b3xsPJ1qKgGeazt fAxYal4BnhEayL0ORfpukQ7LOiBUf/9ntoBCAekXxkYaMSu5fa9xo1ROf1XYxmndncKf 992g== 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=MrQ7lowoA59/3ujs3YT0SrCdq2Hd6tCfda69jh0pPjo=; b=NscbjvUl4lCtcSQZRGC87FjAi0teSrWmAiEDWQUyhaz+P7qw4Ac5TyE2+xUPp9JSoG JTvLQ7jokw3nayFZ1MAr9XJ/SSbNawLopzQWf8ERusfpLg6AB+1iCrOMD6Z9hihjRYx5 aa/CqU75UD+yBY9apr67SDBSEdus2mZRlNlzR1nYDU1ES3uoYCiLk0dL1Yf9vcPRY2nT QmjXrYgrRG8W9iW4pUqQVCW4LFGw0vClBNKu/sM0+VVX8Z3m3yye2GQA0hhS5gjAg4tT Pyr5oiu9H2lmqCv/QBFolV8sOo7nxPSYrX/cUS6FGYBl4pX0yuwFQYAo4hcmDpSMzJ9B BDAA== X-Gm-Message-State: APjAAAWzFpEbcPg6zwu90mAKHg2hZTDnKh43tqACKUTtsVU7+Y2/eCVU h+istmdy7z/kFi7kdXMoXEYfRA== X-Google-Smtp-Source: APXvYqzs/UK2XRiqPLpygXMZhBP7PC02KvAqYHkjy5fZjwdIVK3TxtGThN5JDA85kaXGa1XAWsvK0Q== X-Received: by 2002:a05:6214:11a8:: with SMTP id u8mr1351106qvv.16.1578431840031; Tue, 07 Jan 2020 13:17:20 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id a36sm499342qtk.29.2020.01.07.13.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 13:17:19 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 7BD37301DEF; Tue, 7 Jan 2020 18:17:17 -0300 (-03) Date: Tue, 7 Jan 2020 18:17:17 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: Kyotaro Horiguchi , craig@2ndquadrant.com, pgsql-hackers@postgresql.org Subject: Re: xact_start for walsender & logical decoding not updated Message-ID: <20200107211717.GA20056@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191228233433.gi3er4mvdghia64v@development> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Dec-29, Tomas Vondra wrote: > On Fri, Dec 27, 2019 at 04:46:18PM -0300, Alvaro Herrera wrote: > > > > This patch changes xact.c to avoid updating transaction start timestamps > > for walsenders (maybe more commentary is desirable). I think logical > > decoding is just a special form of walsender and thus it would also be > > updated by this patch, unless I misunderstood what Tomas explained. > > > > It's true walsender should not be doing any read-write transactions or > executing statements (well, maybe a decoding plugin could, but using > historic snapshot). > > So I agree not leaving xact_start for walsender processes seems OK. OK, I pushed my patch to branches 10 - master. (See https://postgr.es/m/20200107211624.GA18974@alvherre.pgsql ) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services