From: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us |
Cc: | houzj(dot)fnst(at)cn(dot)fujitsu(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Use PG_FINALLY to simplify code |
Date: | 2020-09-30 10:07:02 |
Message-ID: | 20200930.190702.1001099867972309013.horikyota.ntt@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
At Tue, 29 Sep 2020 23:10:52 -0400, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote in
tgl> Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> writes:
tgl> > At Tue, 29 Sep 2020 01:03:13 +0000, "Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com> wrote in
tgl> >> Since PG_FINALLY can be used now, I think we can use PG_FINALLY to simplify code here.
tgl>
tgl> > The patch removes PG_RETHROW(), which is crucial in the code
tgl> > path.
tgl>
tgl> No, that's not a problem, because PG_FINALLY incorporates logic
tgl> to reproduce the PG_RE_THROW action if we get to the code block
tgl> due to an error being thrown.
Oops! Sorry. It's exactly the definition of finally block.
tgl> The patch is nonetheless moot, because after a6b1f5365 those
tgl> two code paths are no longer identical.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Dilip Kumar | 2020-09-30 11:04:18 | Re: Resetting spilled txn statistics in pg_stat_replication |
Previous Message | Dilip Kumar | 2020-09-30 10:00:06 | Re: [HACKERS] logical decoding of two-phase transactions |