pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return

pgsql: Fix EXIT out of outermost block in plpgsql.

2021-09-13 Thread Tom Lane
Fix EXIT out of outermost block in plpgsql. Ordinarily, using EXIT this way would draw "control reached end of function without RETURN". However, if the function is one where we don't require an explicit RETURN (such as a DO block), that should not happen. It did anyway, because add_dummy_return