Improve style of two code paths
authorMichael Paquier <[email protected]>
Tue, 8 Oct 2024 01:51:20 +0000 (10:51 +0900)
committerMichael Paquier <[email protected]>
Tue, 8 Oct 2024 01:51:20 +0000 (10:51 +0900)
commit4572d59e3c9b0ef6c056544b6336561efd9bb5ec
treef29711312d0bfd8e1eced82822027ca787b6ece3
parenta9ed7d944965865e5c6b44e58602f621cd185856
Improve style of two code paths

In execGrouping.c, execTuplesMatchPrepare() was doing a memory
allocation that was not necessary when the number of columns was 0.
In foreign.c, pg_options_to_table() was assigning twice a variable to
the same value.

Author: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQAqup0agbSzMjSLSTn=OANyCzxENF1+HrSYnr3WyZib7=Q@mail.gmail.com
src/backend/executor/execGrouping.c
src/backend/foreign/foreign.c