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 1u4j3J-006SjM-4O for pgsql-admin@arkaria.postgresql.org; Tue, 15 Apr 2025 16:22:25 +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 1u4j3H-00D7Ka-C1 for pgsql-admin@arkaria.postgresql.org; Tue, 15 Apr 2025 16:22:24 +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 1u4j3G-00D7H3-Vn for pgsql-admin@lists.postgresql.org; Tue, 15 Apr 2025 16:22:23 +0000 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4j3F-000Dkw-1q for pgsql-admin@lists.postgresql.org; Tue, 15 Apr 2025 16:22:22 +0000 Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-4c325981002so223046137.3 for ; Tue, 15 Apr 2025 09:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744734141; x=1745338941; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=DVSeL/hhoNG7RHGcWT3EeaTKBpj8vk4LXMzQVolXiLQ=; b=dI2kk+2rbWTJ5WUf8+uDgOgIxvHzRX+VwwN70pIbgTAq0NsCExisLEYZ/nqfia3DoV Mu/JYOb2aBLC/D31HpYNxabOSG0biVdnWuU19dBBC4ZxX2GvkYl6H9oGM3hdz7dbC2Ri M69qGgKMwgNEljWLUnYnr4h8ObDgN6o2wqTThVNoo8IYRhI3pdAoJ3m7oNcv4ZsvzI6v m9+PDLBsnU9wyxHpQgFqHYgEVip66+lcm8fUam1jLe3KlxuEeAK4VHR34Ud/Npp9IwaC XsCtJsBC7KkG4ge5yKH9jgMp9vFEvOBcbJ/I2Co1yyqOpu2tc+0eT9yOj4lAkkLz/m0Z yFKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744734141; x=1745338941; h=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=DVSeL/hhoNG7RHGcWT3EeaTKBpj8vk4LXMzQVolXiLQ=; b=sEBpoY9chcyTMSc52A/f0zLhXdt/2+HCI1uHR+iYKaIWgxnfCWl4MbptH+FtBW37cx krh+uGO7eH4JcsJLUTaAmIgTQTCJX6eglhWv7htTv9a/xJeQyLAz/yPHdpSjOifpdfeG kWysw3BqzJ+HnwJAEhyr/w97PJ3i6c0nysbF923O58yAdlmJM3xAmtIpP0yVxL+N7I45 J5B/5aPvgWzP6RqzqlHMUa0h42DaIHemeGw6CRFQ/I4QALgCfmOqbTZqbixdhnHVLa/O 8h1ivZ8/RWbsbWfLFf2YMMXFGBLtwQRPLySsBdBn1zrg0PHL7BP6xDEwfzuP5PLyus7i IZVw== X-Gm-Message-State: AOJu0Yw2qgP7EdeQ2MB/m4/UoFNuRoqK2qwNfEg8qZ0aiW2Tkr64Zl+Z KheQ4MaPfrE+0zNxo5O4ll5OfQ/XtnOsJBoXE4aYNY7BmnihuULdRb+QHlmfB6AaqdwUBCV05PK awxQ/1m7xNX+5Y965xgIH8AIq7XZBoKTT X-Gm-Gg: ASbGncs1XjlWIDExfopItMvzTJt4H3qiQQVpsZzTf2ck4JHTJHzVpZO0GT2kddvUulB jjxW9yhwpOpQKODVaBOdiOpgvaiHAIgs/SLcxSpr5qB1+q8UBq7k8erN+3l9VYavAwHltVP7vIS TXCzQjy2o9AH2tyrN14fuoHow= X-Google-Smtp-Source: AGHT+IH/TR941nrKTtdOlYDXKaZSGjhxFOkK4OqJdkaK9Pf+uzQwG4AlRm/I9pGrNLMyrAKWNWCTn5ZXChSl+i9tE/g= X-Received: by 2002:a05:6102:5487:b0:4c4:edfa:9634 with SMTP id ada2fe7eead31-4c9e4eb9649mr12459397137.1.1744734141061; Tue, 15 Apr 2025 09:22:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Roland_M=C3=BCller?= Date: Tue, 15 Apr 2025 19:22:09 +0300 X-Gm-Features: ATxdqUHnbwqsDjUS-vxueRe0o1fDivNg-YfU2ko93eh1M26re9ypHBvZkkfMjbQ Message-ID: Subject: Re: How to increase the max query history stored To: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000b4a1640632d392de" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b4a1640632d392de Content-Type: text/plain; charset="UTF-8" https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html say's that the file should be in the same directory as config.py. I don't have the latest pgadmin but Ubuntu 22 too: Here config.py is located at: /usr/pgadmin4/web/config.py BR, Roland Am Fr., 31. Jan. 2025 um 11:15 Uhr schrieb Bo Guo : > Hello there, > > The default size of 20 history queries is somewhat limiting. So, I tried > to increase the size on my Linux server-installed (Ubuntu 22.04.5 LTS, > Linux-6.8.12-7-pve-x86_64-with-glibc2.35) PGAdmn 8.14. I followed the > instructions below to no avail. I appreciate any help! > > 1. Create /var/lib/pgadmin/config_local.py and add > ON_DISK_HISTORY = True > MAX_QUERY_HIST_STORED = 5000 # Set to your desired number of queries > > 2. Restart PGAdmin 4 with > sudo systemctl restart apache2 > > Thanks! > > Bo > --000000000000b4a1640632d392de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
https://www.pgadmin.org/docs/pgadmin4/latest/config_py.h= tml say's that the file should be in the same directory as config.p= y.

I don't have the latest pgadmin but Ubuntu = 22 too:

Here config.py is located at:
/u= sr/pgadmin4/web/config.py

BR,
Roland

Am Fr., 31. Jan. 2025 um 11:15=C2=A0Uhr schrieb Bo = Guo <bo.guo@gisticinc.com>= ;:
Hell= o there,

The=C2=A0default size of 20 history queries is somewh= at limiting. So, I tried to increase the size on my Linux server-installed = (Ubuntu 22.04.5 LTS, Linux-6.8.12-7-pve-x86_64-with-glibc2.35)=C2= =A0PGAdmn 8.14.=C2=A0 I followed the instructions below to no avail.=C2=A0 = I appreciate any help!

1. Create /var/lib/pgadmin/config_local= .py and add
ON_DISK_HISTORY =3D True
MAX_QUERY_HIST_STO= RED =3D 5000 =C2=A0# Set to your desired number of queries
2. Restart PGAdmin 4 with
sudo systemctl restart apa= che2

<= /div>
Thanks!

Bo
--000000000000b4a1640632d392de--