Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtieR-00011r-TN for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 02:20:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtieO-00027b-Uf for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2020 02:20:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtieO-00024W-Jm for pgsql-hackers@lists.postgresql.org; Fri, 10 Jul 2020 02:20:32 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jtieK-00038K-Dn for pgsql-hackers@postgresql.org; Fri, 10 Jul 2020 02:20:31 +0000 Received: by mail-il1-x12b.google.com with SMTP id e18so3773330ilr.7 for ; Thu, 09 Jul 2020 19:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-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=oQKicZovEYG7WBIRzbjXCg0MexA84AIDuzRiHXpKUGM=; b=tsV/LjjwvGr72+Pl3qA9sJs5W0l9Kc+1WB1hgbD8DrVcHsEYiI89zcXWHqLNqHm2s0 n8dQ8+wECLX7pdHME06REJi6ot6O9xupDvbjaAJFE5vtd0k+dX1Jkp2TFRXYDPUDUe4c GrvCqjjyEv9VP1sB7bseYDyQEHvUBMOhSml/mFbFZ3pAwZzdzDe8hAEPVDyo56T+dShr h31Nl99qRLj6HoW9RuRv6EAOWA1qhQgApuTT36MkImOG/PtblKB0rlYvoxR6frCeB6qe 3kNFW5D2FgLAzbtzWVLe7Cg0FyALlapWaJzz8YQ9o4eaPxnZghfWKVFbVMdfLHzYHsLz NR7A== 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=oQKicZovEYG7WBIRzbjXCg0MexA84AIDuzRiHXpKUGM=; b=eOLAviLQuH7vfFSfJjSE1DxF879j55BjIxJ7s5FSKfNBvni1PbBuoctEm9QyDdr4pk y58e/fmhLezShkc6HKx0LjaL55InrXKvmfV3IRloLml1GoXTWBvz1vpJbZupUwXafo1F nq248x2Yn3k/+3ee4cOycew0zIv4e9GN4j9stikVi6qPwuMAajFEzz59DxkeGJm2XJnH HvgxvCa7uFmDyRR+j3GXAxoELtiwu+DtIzBISXBey4mqCq4eF4mxX0BgHtET/AA/jjNj 41zsley1Ax7+paKR2tPRCReC3P+5VmU0UNIVa+Nsmiy9FVhg/vj3uNt8S9XDegy0E7Nt JbkA== X-Gm-Message-State: AOAM533vquh1uTbM6ujSxdD33jdZNxn78MppgGTVLdL2TCeKHVoM9lQ4 YXgormQr6QWNYJTjXmAbdxb0Gw== X-Google-Smtp-Source: ABdhPJxBpzCyc3DheEtTp0lOovKaFDOk7/Eg3n40ueVum+dyHmgk7tzpkYW4C/hkG3aixUpW2CvPrw== X-Received: by 2002:a92:b749:: with SMTP id c9mr51839877ilm.289.1594347626037; Thu, 09 Jul 2020 19:20:26 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id x1sm2727250ilh.29.2020.07.09.19.20.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2020 19:20:25 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 01C5E800CE8; Thu, 9 Jul 2020 21:20:23 -0500 (CDT) Date: Thu, 9 Jul 2020 21:20:23 -0500 From: Justin Pryzby To: Michael Paquier Cc: Julien Rouhaud , Daniel Gustafsson , pgsql-hackers@postgresql.org Subject: Re: expose parallel leader in CSV and log_line_prefix Message-ID: <20200710022023.GE26220@telsasoft.com> References: <20200315111831.GA21492@telsasoft.com> <20200315114933.udjdx5wcgwkjnw45@nol> <20200318212511.GN26184@telsasoft.com> <8EC64544-2EAA-48B1-8B69-85158CA3EAE9@yesql.se> <20200710020940.GJ11153@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710020940.GJ11153@paquier.xyz> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Jul 10, 2020 at 11:09:40AM +0900, Michael Paquier wrote: > On Thu, Jul 09, 2020 at 01:53:39PM +0200, Julien Rouhaud wrote: > > Sure! I've been quite busy with internal work duties recently but > > I'll review this patch shortly. Thanks for the reminder! > > Hmm. In which cases would it be useful to have this information in > the logs knowing that pg_stat_activity lets us know the link between > both the leader and its workers? PSA is an instantaneous view whereas the logs are a record. That's important for shortlived processes (like background workers) or in the case of an ERROR or later crash. Right now, the logs fail to include that information, which is deficient. Half the utility is in showing *that* the log is for a parallel worker, which is otherwise not apparent. -- Justin