RE: execution id - Mailing list pgsql-sql

From Voillequin, Jean-Marc
Subject RE: execution id
Date
Msg-id MN2PR20MB273551B63B9E52C589AABDE8BE799@MN2PR20MB2735.namprd20.prod.outlook.com
Whole thread Raw
In response to Re: execution id  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-sql

I thought it was the good list because I was looking for a sql/pqsql function.

What a pitty!

The command counter was probably what I was looking for.

Thanks David.

 

From: David G. Johnston <david.g.johnston@gmail.com>
Sent: Tuesday, August 30, 2022 6:27 PM
To: Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: execution id

 

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

ZjQcmQRYFpfptBannerStart

This email originated from outside of Moody's

Do not click links or open attachments unless you recognize the sender and know the content is safe.

ZjQcmQRYFpfptBannerEnd

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.


Moody's monitors email communications through its networks for regulatory compliance purposes and to protect its customers, employees and business and where allowed to do so by applicable law. The information contained in this e-mail message, and any attachment thereto, is confidential and may not be disclosed without our express permission. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message, or any attachment thereto, in whole or in part, is strictly prohibited. If you have received this message in error, please immediately notify us by telephone, fax or e-mail and delete the message and all of its attachments. Every effort is made to keep our network free from viruses. You should, however, review this e-mail message, as well as any attachment thereto, for viruses. We take no responsibility and have no liability for any computer virus which may be transferred via this e-mail message.

pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: execution id
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: execution id