Remove repeated calls to PQserverVersion

From: Peter Smith <smithpb2250(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Remove repeated calls to PQserverVersion
Date: 2021-07-13 09:02:27
Message-ID: CAHut+Pv9FtWzVoBWoi==aLz6U7hEG0cJvBH9P_eH4CGwJW0gvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I found a few functions making unnecessary repeated calls to
PQserverVersion(conn); instead of just calling once and assigning to a
local variable.

PSA a little patch which culls those extra calls.

------
Kind Regards,
Peter Smith.
Fujitsu Australia

Attachment Content-Type Size
v1-0001-Avoid-unnecessary-calls-to-PGserverVersion.patch application/octet-stream 12.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2021-07-13 09:38:52 Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?
Previous Message Magnus Hagander 2021-07-13 08:58:12 Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?