[openstreetmap/openstreetmap-website] bump pg version in doc (#2404)

mmd notifications at github.com
Sat Oct 19 16:06:18 UTC 2019


Production still uses 9.5, so simply updating the docs won't help in any case.

Can't we make that statement depend on the actual Postgresql version in use, and only execute it if it is supported? 

```sql
DO $$

DECLARE pg_version int := current_setting('server_version_num');

BEGIN

IF pg_version >= 90600 THEN
  EXECUTE 'SET idle_in_transaction_session_timeout = 0';
END IF;

END $$ LANGUAGE plpgsql;

```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2404#issuecomment-544165602
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191019/9fd21326/attachment.html>


More information about the rails-dev mailing list