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 1oT452-0005M6-US for pgsql-sql@arkaria.postgresql.org; Tue, 30 Aug 2022 16:27:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oT451-0004ju-Mn for pgsql-sql@arkaria.postgresql.org; Tue, 30 Aug 2022 16:27:11 +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 1oT451-0004je-Cw for pgsql-sql@lists.postgresql.org; Tue, 30 Aug 2022 16:27:11 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oT44z-0001Kg-Cz for pgsql-sql@lists.postgresql.org; Tue, 30 Aug 2022 16:27:11 +0000 Received: by mail-ej1-x633.google.com with SMTP id bj12so23228933ejb.13 for ; Tue, 30 Aug 2022 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=ItE14vojE/Q0z4uJq50mO1vmF0++T57JuiMLhi/cwlE=; b=FL0YQOdZPQrigRBgOdIc14wCl5Jg/j4/MmkDDcP69YMtBSzIyqzu4TiUTPqj7NL1hA NqCeNGJ4/yikRROMXgDotNJCVWmkdUl9ykW7+rZmibNj+bMjjyJ942m20DciQJf1ievO MLFhB8s9L9mQRKZXKI9M0UconeOm4TGUvTYZ6xnzYOeJrcBxUKrLYXI7n4diMvxMqI52 KyGhXc92nsuDindRu/uCTpts7jaEJUkr0G1OJiklhwwDVLA43UPqTLavWy6iZwI3/KrA 7GVdEvfxIXEmtg93A+uKMIJZ0/+1WivvW/w5gsPb3VrSwOGJW4BnZ30k98Je/jeI33GY ceYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=ItE14vojE/Q0z4uJq50mO1vmF0++T57JuiMLhi/cwlE=; b=OhNBlyaVFUQv7YSgpzXf0HSihrrEQeDg+Y3mYZ3PdJ2dBrSudgn12oGdPDBCpUHGTz 0j/vlXrnuZvbrU/kc7dPFQZsIEuIbFqMIA5cBh+Jxv9TaRbKCD2IZfrgJkQ7BGCOXrjy TmiI2xIzVdSBpEoNx26rEOrlKEzCQe7rrs98tgE8uDa4lsCfM5UBMJjFrqxDcFfIdj/m qj/T/NFwmhIxnsHOxQpSMuK2cDD5SP/y7objnrAiBrJAaZR1oyHrTFmAEYBGjBIVO0eF dabHT8vhSaRf4EK6HGlmzDtv3aTgjKx/HER4+QVFLEZP7N1smq2HsQk2gB+EWY6F7mro ZR0w== X-Gm-Message-State: ACgBeo2GqeRWg75Krsj9NWig8L2pleHCUDMSJgvla4B+SLTBtqrLrMhb 530SpKgOMV/zZYE7uTbZb9y5QVrugGkl8mkpjUU= X-Google-Smtp-Source: AA6agR6hvEQRnPOaK4IasUMn+aDySvRoJMoAxMKtmRXZGUvUB9Su5QsbCIrp60Bej7pUG1nE8HHlpMovcAz2b7nrfa8= X-Received: by 2002:a17:906:591:b0:73d:c3ef:84ae with SMTP id 17-20020a170906059100b0073dc3ef84aemr17383683ejn.155.1661876828345; Tue, 30 Aug 2022 09:27:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Tue, 30 Aug 2022 09:26:51 -0700 Message-ID: Subject: Re: execution id To: "Voillequin, Jean-Marc" Cc: "pgsql-sql@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000039b0505e777dab4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000039b0505e777dab4 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 30, 2022 at 9:23 AM Voillequin, Jean-Marc < Jean-Marc.Voillequin@moodys.com> wrote: > Hello guys, > > > > Is there a kind of magical system administration function that returns a > unique id each time a select/insert/update/delete statement is launched? > > > Not sure why you thought the "SQL" list was a good choice for this question...but assuming you actually want something exposed to SQL the answer would be no. Internal state management (the "CommandCounter" as I believe it is called) is an implementation artifact not exposed to the DBA. David J. --000000000000039b0505e777dab4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 30, 2022 at 9:23 AM Voillequin, Jean-Marc <= Jean-Marc.Voillequin@moo= dys.com> wrote:

Hello guys,

=C2=A0

Is there a kind of magical system administration fun= ction that returns a unique id each time a select/insert/update/delete stat= ement is launched?

=C2=A0


Not sure why you thought the "SQL" list was a good = choice for this question...but assuming you actually want something exposed= to SQL the answer would be no.=C2=A0 Internal state management (the "= CommandCounter" as I believe it is called) is an implementation artifa= ct not exposed to the DBA.

David J.
--000000000000039b0505e777dab4--