pgsql: Improve style of two code paths

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve style of two code paths
Date: 2024-10-08 01:53:29
Message-ID: E1sxzPl-002d3w-FI@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-10-08 05:17:50 Re: pgsql: Fix fetching default toast value during decoding of in-progress
Previous Message Jeff Davis 2024-10-08 01:05:26 pgsql: Fix search_path cache initialization.