()
| 798 | } |
| 799 | |
| 800 | function fetchState() { |
| 801 | const query = new Query([` |
| 802 | show transaction_read_only; |
| 803 | select pg_catalog.pg_is_in_recovery() |
| 804 | `], [], execute, null, { simple: true }) |
| 805 | query.resolve = ([[a], [b]]) => { |
| 806 | backendParameters.default_transaction_read_only = a.transaction_read_only |
| 807 | backendParameters.in_hot_standby = b.pg_is_in_recovery ? 'on' : 'off' |
| 808 | } |
| 809 | query.execute() |
| 810 | } |
| 811 | |
| 812 | function ErrorResponse(x) { |
| 813 | if (query) { |
no test coverage detected