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 1jyGn0-0000o0-FG for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jul 2020 15:36:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jyGmz-0006Qt-41 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jul 2020 15:36:13 +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 1jyGmy-0006Qm-Nm for pgsql-hackers@lists.postgresql.org; Wed, 22 Jul 2020 15:36:12 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyGmv-0005Mf-7J for pgsql-hackers@postgresql.org; Wed, 22 Jul 2020 15:36:11 +0000 Received: by mail-qt1-x844.google.com with SMTP id o22so1874109qtt.13 for ; Wed, 22 Jul 2020 08:36:08 -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=oI29tE7/s9GvMLzQI325cdp/SzqISwsmrspl4okGlW4=; b=vDn+m0zy70RcbWtbQsyM5T3aqziADQnOwhxhZ2px3+rnAeYNTDr+lt8NnMbgGaZhpb k3TmVX3QO28R+Dxl1878+++hwaxmMM+yDn30GdPXmbjjc3sJ1TGLywOVSZD/8/BRr/SL t/dIpKsrjdawI7egL+iLjITkR2xlbbwQwS66tXUnGYO2qr+9d6ffkZ2L8rZiDnCcrpSu TO5tC8zuUVDC/h+SbfoBpHDJWIwye1PxdWNHkOnyEXIRiV7jI04JCg++dqi+uoQho8I6 JwbURtcgVAdBhWmBddlPvTEd9qxcoyPZ+w9wQSC2DW0me45JuPBbDBYss1flXTiPay18 Sojg== 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=oI29tE7/s9GvMLzQI325cdp/SzqISwsmrspl4okGlW4=; b=EUj9h/nNGcwU9u2MypQng91bBVLrciDJiCdOMMhoCvj24w83I4pkxKrJ3rSm0Lzkjz DlbgpLtk1ifFATMV3Ltn/TvE3g1ZWe5jo0krB6Is1+obvGDJ0mgbkStou+PHhBlI7rz3 rkfX0wKAnYILxfFt122TSD3kjzkQdl6vHdZgiTndgo39Z0ZgtxobMwx0xFlrA6BkzBNe qzCFASOFq/WdXslp1gcy9hmhn9yT19KS+9wyCUiHQGamSGXki6kggEHocEwSxmPFJftC sA8mMguXZjAznraW1U9SwaFmcRJfri6R3MT9imUY1i9A3checPYzCec/q3OhkBIC5Uys Es+w== X-Gm-Message-State: AOAM532fo4+Jb9JFRJqmke1FoUFcNDUIOw4CdMP4nZX/0nHP9aeS1uAi 1ULWyUwUT3fzQ7hDZCd1SN4rlw== X-Google-Smtp-Source: ABdhPJx4LxmtTpLpMJdScv/XJN1Zh/F/KHvCsPJFK9p0Sb0vzDXCB0Z6b66wmQ6hGmOqHmBKVI68iw== X-Received: by 2002:aed:2ba1:: with SMTP id e30mr36066575qtd.357.1595432167374; Wed, 22 Jul 2020 08:36:07 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id d8sm161078qkl.118.2020.07.22.08.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 08:36:06 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1462C2A25BD; Wed, 22 Jul 2020 11:36:05 -0400 (-04) Date: Wed, 22 Jul 2020 11:36:05 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Justin Pryzby , Julien Rouhaud , Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: expose parallel leader in CSV and log_line_prefix Message-ID: <20200722153605.GA961@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200721043325.GC17300@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-21, Michael Paquier wrote: > On Mon, Jul 20, 2020 at 11:12:31PM -0500, Justin Pryzby wrote: > >> + Process ID of the parallel group leader if this process is involved > >> + in parallel query, or null. For a parallel group leader, this field > >> + is NULL. > >> > > | For a parallel worker, this is the Process ID of its leader process. Null > > | for processes which are not parallel workers. How about we combine both. "Process ID of the parallel group leader, if this process is a parallel query worker. NULL if this process is a parallel group leader or does not participate in parallel query". -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services