Re: [PATCHES] [subxact] Proof-of-concept: report nest level to client

2004-07-16 Thread Oliver Jowett
Tom Lane wrote: Alvaro Herrera <[EMAIL PROTECTED]> writes: Patch attached (surprinsingly small), though it only applies with the savepoint patch applied(*). If any driver writer wants to play, however, it's easy to see what's going on -- a ParameterStatus message will be received from the backend

Re: [PATCHES] [subxact] Proof-of-concept: report nest level to client

2004-07-16 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Patch attached (surprinsingly small), though it only applies with the > savepoint patch applied(*). If any driver writer wants to play, however, > it's easy to see what's going on -- a ParameterStatus message will be > received from the backend whenever

[PATCHES] [subxact] Proof-of-concept: report nest level to client

2004-07-16 Thread Alvaro Herrera
Hackers, I tried to implement the reporting of the current transaction level to the client using an ad-hoc ParameterStatus message. Seems it works. To see it working I added a %d escape to psql prompt processing: alvherre=# \set PROMPT1 '[EMAIL PROTECTED]/%R[%d]%x ' [EMAIL PROTECTED] begin; BEGI