Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbFbH-00FC2c-JJ for pgsql-general@arkaria.postgresql.org; Tue, 06 Aug 2024 08:31:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sbFbE-009LJF-JB for pgsql-general@arkaria.postgresql.org; Tue, 06 Aug 2024 08:31:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbFbE-009L8p-5m for pgsql-general@lists.postgresql.org; Tue, 06 Aug 2024 08:31:20 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbFbB-003Lik-HX for pgsql-general@lists.postgresql.org; Tue, 06 Aug 2024 08:31:18 +0000 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-6b7b28442f9so3170626d6.3 for ; Tue, 06 Aug 2024 01:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722933076; x=1723537876; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gEroKFQcRWmciSnbYVCtUI9p/NGNrlf1B/qJZyzOUGE=; b=ljKuOhq6p2koSNRU5KELlOiHfPc5WphddzlyqsKqG32cHJkyjRsAtMavrKaF+ZPU8T i/xoKNtI+hxEhrrV7G8M6JjNn+3ZuRVCUI6AV31s/BbXReIX8EgV1Bh6Nh87/XKvICVA CxOU08MGc3VOzPyNp46ykCQKkLNCdkHdZk4fNFPxU3Z5N22zy+Ca8vbWq4ZKEwae/Z0d UthqmBwmCl5FqcLLhWxuaKXFUpe3pqvvLLK1W1OPJ+VZzcG4y45a/LCsAgmKzyRQmE95 dQAM1MJJXW0HntUjmJGFq18RpLZZ+9LHYqdxM9GCdp6zbNCAutrLSGGtz6iCdPfDkQhN xZtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722933076; x=1723537876; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gEroKFQcRWmciSnbYVCtUI9p/NGNrlf1B/qJZyzOUGE=; b=Hz6CbCDdngwK9dYWvyB+5m/GODqH1QxHpedTBfoF5b+g2ecV8AYQp10r48jeNrbRdH KL1sFg5v+6KqwvR8Oj4q6JIb8UQH9K7+GXf3V7U+N1LzAulxN7slv0dYLnJdFZ7r4g8/ olf5CM6DVvphW+BOeCrhtTNPKazQkKFoYgJYHDI2fOUyhxuSVOaU/tk+vj5dsWH51444 sRYJBP8yBMEmNIT5HB1fm5p+TOgg1yVYBE0+9LJn97kcpgZXkRdT1CZkWz+JnThLV68k ZJhM3VQthhyrr53Gezu5zQedRkKHC27c1dMrB5bYk5Gm0aDsO21x+VxI2AqOliCdoCjC Is/Q== X-Gm-Message-State: AOJu0YwnhhUiijKE/D4Hs/zfc9ZJty0cFwRaO5EYPhwYoBxhx4zSRKcF 0aZnz8xANuorFOP7KwToQKgjkK/2r/JciJaIY/X3GKViSzx9ZAK40OU+7EQ4NlIv9/uprbxQOPk 0W8MpDvfy1gsjf+YdwYTmNUoCrNI= X-Google-Smtp-Source: AGHT+IF36WapoqWET5uJ4gi8ETmfMkmhUM+L4mqwLRFCGgL/vOVDPAqUYPm3QrRGDuhdbdkQNpMq7VatBuLijZrRwls= X-Received: by 2002:a05:6214:4413:b0:6b5:7e09:970c with SMTP id 6a1803df08f44-6bb983d5533mr154183096d6.33.1722933076312; Tue, 06 Aug 2024 01:31:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Imtiaz Date: Tue, 6 Aug 2024 13:31:04 +0500 Message-ID: Subject: Re: Can't change tcp_keepalives_idle To: "Abraham, Danny" Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000fc4d5c061eff9dc2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fc4d5c061eff9dc2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, This parameter is supported only on systems that support TCP_KEEPINTVL. And please ensure that you are not accidentally connecting through a Unix-domain socket. If the result of this query is null then it is a Unix socket based connection. SELECT client_addr FROM pg_stat_activity WHERE pid =3D pg_backend_pid(); Regards, Muhammad Imtiaz On Sun, Aug 4, 2024 at 4:16=E2=80=AFPM Abraham, Danny wrote: > Hi, > > Change tcp_keepalives_idle in postgresql.conf from 0 to 300 , then pg_ctl > reload but it stays with the old 0 value. > Tried restart and it did not work. PG Log says it was changed. > Reset_cal marked OK, but no real change ( ins how) > > -[ RECORD 1 ]---+----------------------------------------------------- > name | tcp_keepalives_idle > setting | 0 > unit | s > category | Connections and Authentication / Connection Settings > short_desc | Time between issuing TCP keepalives. > extra_desc | A value of 0 uses the system default. > context | user > vartype | integer > source | session > min_val | 0 > max_val | 2147483647 > enumvals | > boot_val | 0 > reset_val | 1800 > sourcefile | > sourceline | > pending_restart | f > > Thanks > > Danny > > > --000000000000fc4d5c061eff9dc2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

This parameter is supported only on s= ystems that support=C2=A0TCP_KEEP= INTVL. And please=C2=A0ensure that you are not accidentally connecting through a Unix-dom= ain socket.=C2=A0 If the result of this query is null then it is a Unix soc= ket based connection.
SELECT client_addr FROM pg_stat_activity WHERE pid =3D pg_backend_pid();

Regards,<= br>Muhammad Imtiaz=C2=A0

On Sun, Aug 4, 2024 at 4:16=E2=80=AFPM Abraha= m, Danny <danny_abraham@bmc.com= > wrote:
= Hi,

Change tcp_keepalives_idle in postgresql.conf from 0 to 300 , then pg_ctl r= eload but it stays with the old 0 value.
Tried restart and it did not work. PG Log says it was changed.
Reset_cal marked OK, but no real change ( ins how)

-[ RECORD 1 ]---+-----------------------------------------------------
name=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | tcp_keepalives_idle
setting=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 0
unit=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | s
category=C2=A0 =C2=A0 =C2=A0 =C2=A0 | Connections and Authentication / Conn= ection Settings
short_desc=C2=A0 =C2=A0 =C2=A0 | Time between issuing TCP keepalives.
extra_desc=C2=A0 =C2=A0 =C2=A0 | A value of 0 uses the system default.
context=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| user
vartype=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| integer
source=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | session
min_val=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 0
max_val=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 2147483647
enumvals=C2=A0 =C2=A0 =C2=A0 =C2=A0 |
boot_val=C2=A0 =C2=A0 =C2=A0 =C2=A0 | 0
reset_val=C2=A0 =C2=A0 =C2=A0 =C2=A0| 1800
sourcefile=C2=A0 =C2=A0 =C2=A0 |
sourceline=C2=A0 =C2=A0 =C2=A0 |
pending_restart | f

Thanks

Danny


--000000000000fc4d5c061eff9dc2--