From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Restructure libpq code to remove some duplicity |
Date: | 2019-09-10 15:26:07 |
Message-ID: | E1i7i1v-00040W-3j@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Restructure libpq code to remove some duplicity
There was some duplicate code to run SHOW transaction_read_only to
determine whether the server is read-write or read-only. Reduce it by
adding another state to the state machine.
Author: Hari Babu Kommi
Reviewed-by: Takayuki Tsunakawa, Álvaro Herrera
Discussion: https://postgr.es/m/CAJrrPGe_qgdbbN+yBgEVpd+YLHXXjTruzk6RmTMhqrFig+32ag@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b438e7e7a1c58e0c20b5f46e73cbd713e8033c69
Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 85 ++++++++++++++-------------------------
src/interfaces/libpq/libpq-fe.h | 3 +-
2 files changed, 33 insertions(+), 55 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-09-10 15:39:46 | Re: pgsql: Reorder EPQ work, to fix rowmark related bugs and improve effici |
Previous Message | Andres Freund | 2019-09-10 11:37:25 | Re: pgsql: Reorder EPQ work, to fix rowmark related bugs and improve effici |