Re: Virtual tx id

2022-09-20 Thread Julien Rouhaud
Hi, On Wed, Sep 21, 2022 at 01:58:47PM +1000, James Sewell wrote: > Hello Hackers! > > Is it possible to get the current virtual txid from C somehow? > > I've looked through the code, but can't seem to find anything other than > getting a NULL when there is no (real) xid assigned. Maybe I'm missin

Re: Virtual tx id

2022-09-20 Thread Zhang Mingli
HI, On Sep 21, 2022, 11:59 +0800, James Sewell , wrote: > Hello Hackers! > > Is it possible to get the current virtual txid from C somehow? > > I've looked through the code, but can't seem to find anything other than > getting a NULL when there is no (real) xid assigned. Maybe I'm missing > somet

Re: Virtual tx id

2022-09-20 Thread Japin Li
On Wed, 21 Sep 2022 at 11:58, James Sewell wrote: > Hello Hackers! > > Is it possible to get the current virtual txid from C somehow? > The virtual txid is consisted of MyProc->backendId and MyProc->lxid. Do you mean a C function that returns virtual txid? > I've looked through the code, but c

Virtual tx id

2022-09-20 Thread James Sewell
Hello Hackers! Is it possible to get the current virtual txid from C somehow? I've looked through the code, but can't seem to find anything other than getting a NULL when there is no (real) xid assigned. Maybe I'm missing something? Cheers, James