From: Haribabu Kommi [mailto:kommi.haribabu@gmail.com] Here I attached first set of patches that implemented the prefer-read option > after reporting the transaction_read_only GUC to client. Along the lines > of adding prefer-read option patch,
Great, thank you! I'll review and test it.
Thanks.
> 3. Existing read-write code is modified to use the new reported GUC instead > of executing the show command.
Is the code path left to use SHOW for older servers?
Yes, for older versions less than 12, still uses the SHOW command approach.