(PDB-5483) Fix set transaction read write error on hot standby
(PDB-5483) Fix set transaction read write error on hot standby

Fix upgrade error introducted in (PDB-5483) #3643.  Conditionally set
jit setting if server_version > 11.

Ref: https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-USERS

  Transaction management commands that explicitly set non-read-only
  state: (SET TRANSACTION READ WRITE) are explicitly denied while
  configured as hot standby, but you can change a run time parameter
  settings using SET

[rlb@puppet.com: squash related patches]
[rlb@puppet.com: adjust commit message to include ticket, etc.]

puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb