Improve style of two code paths

Michael Paquier <michael@paquier.xyz>

Commit: 4572d59e3c9b0ef6c056544b6336561efd9bb5ec
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-10-08T01:51:20Z
Releases: 18.0
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

Files

PathChange+/−
src/backend/executor/execGrouping.c modified +3 −1
src/backend/foreign/foreign.c modified +1 −1

Discussion