pgsql: Improve style of two code paths - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Improve style of two code paths
Date
Msg-id E1sxzPl-002d3w-FI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4572d59e3c9b0ef6c056544b6336561efd9bb5ec

Modified Files
--------------
src/backend/executor/execGrouping.c | 4 +++-
src/backend/foreign/foreign.c       | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Fix search_path cache initialization.
Next
From: Amit Kapila
Date:
Subject: Re: pgsql: Fix fetching default toast value during decoding of in-progress