pgsql: postgres_fdw: Remove useless ternary expression.

Started by Etsuro Fujitaover 2 years ago1 messagescomitters
Jump to latest
#1Etsuro Fujita
fujita.etsuro@lab.ntt.co.jp

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: /messages/by-id/CAPmGK14mm+=UjyjoWj_Hu7c+QqX-058RFfF+qOkcMZ_Nj52v-A@mail.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(-)