Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSQtb-0002VM-Uj for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Dec 2017 17:14:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSQtb-00008F-Ae for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Dec 2017 17:14:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eSQ1d-0004G9-Nc for pgsql-bugs@lists.postgresql.org; Fri, 22 Dec 2017 16:18:21 +0000 Received: from mail.chartercom.com ([24.176.92.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eSQ1a-0007re-5Z for pgsql-bugs@postgresql.org; Fri, 22 Dec 2017 16:18:20 +0000 X-IronPort-AV: E=Sophos;i="5.45,441,1508821200"; d="scan'208,217";a="242899578" Received: from unknown (HELO SC58MEXGP002.CORP.CHARTERCOM.com) ([172.24.253.130]) by mail.chartercom.com with ESMTP; 22 Dec 2017 10:18:12 -0600 Received: from SC58MEXGP020.CORP.CHARTERCOM.COM (172.24.253.148) by SC58MEXGP002.CORP.CHARTERCOM.com (172.24.253.130) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 22 Dec 2017 10:18:09 -0600 Received: from SC58MEXGP020.CORP.CHARTERCOM.COM ([fe80::29d5:ec22:71e0:707]) by SC58MEXGP020.CORP.CHARTERCOM.com ([fe80::29d5:ec22:71e0:707%18]) with mapi id 15.00.1104.000; Fri, 22 Dec 2017 10:18:09 -0600 From: "Robertson, Alan L" To: Postgres Bug Subject: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command. Thread-Topic: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command. Thread-Index: AQHTez6kljvbnl/ZIEqPT7JFZRhQcg== Date: Fri, 22 Dec 2017 16:18:09 +0000 Message-ID: <1513959489455.36489@charter.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.24.253.192] Content-Type: multipart/alternative; boundary="_000_151395948945536489chartercom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_151395948945536489chartercom_ Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Dear Postgres Bug list, I read about the ALTER SYSTEM command at https://www.postgresql.org/docs/9.= 6/static/sql-altersystem.html and an article at http://paquier.xyz/postgresql-2/postgres-9-4-feature-highlight-alter-system= -set-for-dynamic-configuration/ and his example worked exactly as it should. However, when I tried with tc= p_keepalives_idle, updates the auto.conf file as it should, but does not sh= ow up in the SHOW command... I tried it with the value 60, or '60' - didn'= t seem to make any difference... postgres=3D# ALTER SYSTEM SET work_mem TO '10MB'; ALTER SYSTEM postgres=3D# SELECT pg_reload_conf(); pg_reload_conf ---------------- t (1 row) postgres=3D# SHOW work_mem; work_mem ---------- 10MB (1 row) postgres=3D# ALTER SYSTEM SET tcp_keepalives_idle=3D'60'; ALTER SYSTEM postgres=3D# SELECT pg_reload_conf(); pg_reload_conf ---------------- t (1 row) postgres=3D# SHOW tcp_keepalives_idle; tcp_keepalives_idle --------------------- 0 (1 row) $ sudo cat /var/lib/postgresql/9.5/main/postgresql.auto.conf # Do not edit this file manually! # It will be overwritten by ALTER SYSTEM command. tcp_keepalives_idle =3D '60' work_mem =3D '10MB' $ sudo -u postgres psql psql (9.5.10) Type "help" for help. postgres=3D# SHOW work_mem; work_mem ---------- 10MB (1 row) postgres=3D# SHOW tcp_keepalives_idle; tcp_keepalives_idle --------------------- 0 (1 row) So, which is not working - reading from the config file, or showing the cor= rect value? I get the same value (0) even when I hack the main postgresql.conf file. It= still shows zero. I even restarted the service - makes no difference. -- Alan Robertson alan.robertson@charter.com E-MAIL CONFIDENTIALITY NOTICE: = The contents of this e-mail message and any attachments are intended solely= for the addressee(s) and may contain confidential and/or legally privilege= d information. If you are not the intended recipient of this message or if = this message has been addressed to you in error, please immediately alert t= he sender by reply e-mail and then delete this message and any attachments.= If you are not the intended recipient, you are notified that any use, diss= emination, distribution, copying, or storage of this message or any attachm= ent is strictly prohibited. --_000_151395948945536489chartercom_ Content-Type: text/html; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
Dear Postgres Bug list,=

I read about the ALTER = SYSTEM command at https://www.postgresql.org/docs/9.6/static/sql-alte= rsystem.html and an article at 

and his example wo= rked exactly as it should.  However, when I tried with tcp_k= eepalives_idle, updates the auto.conf file as it should, but does not = show up in the SHOW command...  I tried it with the value 60, or '60' - didn't seem to make any difference...

 
postgres=3D# ALTER SYSTEM SET work_mem TO '10MB';
ALTER SYSTEM
postgres=3D# SELECT pg_reload_conf();
 pg_reload_conf 
----------------
 t
(1 row)
postgres=3D# SHOW work_mem;
 work_mem 
----------
 10MB
(1 row)

postgres=3D# ALTER SYSTEM SET tcp_keepalives_idle=3D'60';
ALTER SYSTEM
postgres=3D# SELECT pg_reload_conf();
 pg_reload_conf 
----------------
 t
(1 row)

postgres=3D# SHOW tcp_keepalives_idle;
 tcp_keepalives_idle 
---------------------
 0
(1 row)

$ sudo cat /var/lib/postgresql/9.= 5/main/postgresql.auto.conf
# Do not edit this file manually!=
# It will be overwritten by ALTER= SYSTEM command.
tcp_keepalives_idle =3D '60'
work_mem =3D '10MB'

$ sudo -u postgres psql
psql (9.5.10)
Type "help" for help.=
postgres=3D# SHOW work_mem;
 work_mem 
----------
 10MB
(1 row)
postgres=3D# SHOW tcp_keepalives_idle;=
 tcp_keepalives_idle =
---------------------
 0
(1 row)

So, which is not wor= king - reading from the config file, or showing the correct value?

I get the same value= (0) even when I hack the main postgresql.conf file. It still shows ze= ro. I even restarted the service - makes no difference.

  -- Alan Rober= tson
     = alan.robertson@charter.com


The contents of this e-mail message and
any attachments are intended so= lely for the
addressee(s) and may contain confidential
and/or legal= ly privileged information. If you
are not the intended recipient of this= message
or if this message has been addressed to you
in error, plea= se immediately alert the sender
by reply e-mail and then delete this mes= sage
and any attachments. If you are not the
intended recipient, yo= u are notified that
any use, dissemination, distribution, copying,
o= r storage of this message or any attachment
is strictly prohibited. --_000_151395948945536489chartercom_--