<p>Production still uses 9.5, so simply updating the docs won't help in any case.</p>
<p>Can't we make that statement depend on the actual Postgresql version in use, and only execute it if it is supported?</p>
<div class="highlight highlight-source-sql"><pre>DO $$
DECLARE pg_version <span class="pl-k">int</span> :<span class="pl-k">=</span> current_setting(<span class="pl-s"><span class="pl-pds">'</span>server_version_num<span class="pl-pds">'</span></span>);
<span class="pl-k">BEGIN</span>
IF pg_version <span class="pl-k">>=</span> <span class="pl-c1">90600</span> THEN
EXECUTE <span class="pl-s"><span class="pl-pds">'</span>SET idle_in_transaction_session_timeout = 0<span class="pl-pds">'</span></span>;
END IF;
END $$ LANGUAGE plpgsql;
</pre></div>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2404?email_source=notifications&email_token=AAK2OLP66QCDREY45SYLKHTQPMV7VA5CNFSM4JCQE432YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU5YQ#issuecomment-544165602">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKXD7FJNN525YMZ3I3QPMV7VANCNFSM4JCQE43Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLPEGEV326MYROQQF5TQPMV7VA5CNFSM4JCQE432YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU5YQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2404?email_source=notifications\u0026email_token=AAK2OLP66QCDREY45SYLKHTQPMV7VA5CNFSM4JCQE432YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU5YQ#issuecomment-544165602",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2404?email_source=notifications\u0026email_token=AAK2OLP66QCDREY45SYLKHTQPMV7VA5CNFSM4JCQE432YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU5YQ#issuecomment-544165602",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>