Re: Adding some error context for lock wait failures - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Adding some error context for lock wait failures
Date
Msg-id 1664608.1752202408@sss.pgh.pa.us
Whole thread Raw
In response to Re: Adding some error context for lock wait failures  (Zhang Mingli <zmlpostgres@gmail.com>)
Responses Re: Adding some error context for lock wait failures
List pgsql-hackers
Zhang Mingli <zmlpostgres@gmail.com> writes:
> Do we need to rollback error_context_stack to the previous state if we enter the branch for PG_CATCH()?

No.  The PG_TRY mechanism itself deals with that: the next outer
level of PG_TRY will restore error_context_stack to what it had
been.  If this were not so, most other places that add an
error_context_stack entry would also be broken.

            regards, tom lane



pgsql-hackers by date:

Previous
From: "sundayjiang(蒋浩天)"
Date:
Subject: 回复:[Internet]Re: Re: 回复:Re: [PATCH] Pr event replacement of a function if it's used in an index expression and is not IMMUTABLE
Next
From: Dilip Kumar
Date:
Subject: Re: CHECKPOINT unlogged data