Use PG_FINALLY to simplify code - Mailing list pgsql-hackers

From Hou, Zhijie
Subject Use PG_FINALLY to simplify code
Date
Msg-id b3a00de043a144cc962f5de0479bc478@G08CNEXMBPEKD05.g08.fujitsu.local
Whole thread Raw
Responses Re: Use PG_FINALLY to simplify code
List pgsql-hackers
Hi

In (/src/pl/plpgsql/src/pl_exec.c), I found some code like the following:

     PG_CATCH();
    {
        if (expr->plan && !expr->plan->saved)
            expr->plan = NULL;
        PG_RE_THROW();
    }
    PG_END_TRY();

    if (expr->plan && !expr->plan->saved)
        expr->plan = NULL;

Since PG_FINALLY can be used now, I think we can use PG_FINALLY to simplify code here.

Best regards,
houzj



Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Small improvements to pg_list.h's linitial(), lsecond(), lthird() etc macros
Next
From: Amit Langote
Date:
Subject: Re: Report error position in partition bound check