pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: Remove useless ternary expression.
Date: Thu, 04 Apr 2024 09:02:19 +0000
Message-ID: <E1rsIzC-000QOg-I9@gemulon.postgresql.org> (raw)

postgres_fdw: Remove useless ternary expression.

There is no case where we would call pgfdw_exec_cleanup_query or
pgfdw_exec_cleanup_query_{begin,end} with a NULL query string, so this
expression is pointless; remove it and instead add to the latter
functions an assertion ensuring the given query string is not NULL.

Thinko in commit 815d61fcd.

Discussion: https://postgr.es/m/CAPmGK14mm%2B%3DUjyjoWj_Hu7c%2BQqX-058RFfF%2BqOkcMZ_Nj52v-A%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dd24098cd6fdd599dcee0cd379bb8bdb0c3710a4

Modified Files
--------------
contrib/postgres_fdw/connection.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)



Message-ID: <E1rsIzC-000QOg-I9@gemulon.postgresql.org>
Permalink:  ../E1rsIzC-000QOg-I9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rsIzC-000QOg-I9@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: efujita@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: postgres_fdw: Remove useless ternary expression.
  In-Reply-To: <E1rsIzC-000QOg-I9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox