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 1tD82L-00G8d4-T9 for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2024 20:07:53 +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 1tD82K-007HjC-1L for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2024 20:07:52 +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 1tD82J-007Hj1-Jq for pgsql-admin@lists.postgresql.org; Mon, 18 Nov 2024 20:07:52 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tD82H-002Zjx-PC for pgsql-admin@lists.postgresql.org; Mon, 18 Nov 2024 20:07:50 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3e602994635so1955917b6e.0 for ; Mon, 18 Nov 2024 12:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731960468; x=1732565268; 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=0mR/BpKljR15JtLsdZc/EyRC80WPg3parTHV/+dgtAk=; b=WPaCQQuchC8noxMyChyjuX1QBCr0Jy4VQX/Q0OYY87xr238ZiSeagbSK7NhmHgHiUC +Zdm584lEPNOJHEc6SXWvVYOEQeqBmjSo6jVCHm72QSRXhdnbY/dkIOBoe8BGwOWyjXp xphoFvbLTpmu3P3LGcIW0R+iKms3Q2ZwUwLVsfx7zLAawsNml3uM5ielLkIGmTfWehw4 znY5ac+kNSwemYFmwUJHXWvXicklh7HZVgBHQV7wHmVBp2QilFQkj2L56rGA/RJMvOFX Faw0J4i7LSHdL3S+rEK6gpaHnBB02eWUEgF1Sze7xAg0B6rYoNELh/UJKLRkAjkToDOl k9EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731960468; x=1732565268; 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=0mR/BpKljR15JtLsdZc/EyRC80WPg3parTHV/+dgtAk=; b=LEAhwaKEtW0VBeS69vgLAeUMUMW3cPUaAcdiEud6zCtWwbQkNDTl7NHqgaqQVI6qyF rAHuH6vj4qsWLcsYN1N8RxYKPhnkgfo6mwhLFZi/1eDgfd2TULr6hBIN2NIhul8CEqq3 W8FfXYQ36Jt9vOWV5SmY33lA4wM/pEjAtYzV6U3fwYngxTQROq4I98v36QmgRueCRp/k grisT/6r1zTbGV+etKXeL6vKGYNuCQ1UOz58HS40/wgZWZ2Qldf4h6s1clkK5EIRa8Ep XMgAOAL4Uf4+WoIie7swPuI4dRKLF8ThnNnPZ20+iZe/3kxk0IAajnbi1REWl1dzfm96 S4+g== X-Gm-Message-State: AOJu0YytQW+LNzUKuYO93IlPr/6WCFEf12aCYkrRE4nJ9w0Ugm/3pekT h+fNthzrJ9uCyXtU1rQJ5N4e0mRRzj4nwUCGOtQLJ1uk4bjDBjvOKYw0R5r0m/5PDimDVvb2N5P Adia/czSlOWsu+gmOYrz6UME9g1AUpRH1 X-Google-Smtp-Source: AGHT+IFUt1OgBXt4RkofDGmsi+xNi3dranJV9puyK5x+6/U2j1NB1SCVLbQ3TMRP9xxYMNYeOqqAD6BSdBOVCqCgVz4= X-Received: by 2002:a05:6808:189b:b0:3e6:63bb:ed4e with SMTP id 5614622812f47-3e7bc82732bmr10733203b6e.27.1731960468351; Mon, 18 Nov 2024 12:07:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Mon, 18 Nov 2024 13:07:12 -0700 Message-ID: Subject: Re: Mysterious connections to PostgreSQL (no statement) coming from pgbouncer (mode = transaction) To: Achilleas Mantzios Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000007b370c06273578ef" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007b370c06273578ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 18, 2024 at 1:03=E2=80=AFPM Achilleas Mantzios < a.mantzios@cloud.gatewaynet.com> wrote: > We have been running pgbouncer (since 1.8) for quite some years, and toda= y > I realized I have connections to the DB from pgbouncer that don't do > anything, do not execute any statement. > Seems reasonable that a pooler would open connections to PostgreSQL to prime the pool even before any demand is seen. That way demand is immediately given a functioning connection. David J. --0000000000007b370c06273578ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 18, 2024 at 1:03=E2=80=AFPM Achilleas Mantzios= <a.mantzios@cloud.ga= tewaynet.com> wrote:
=20 =20 =20

We have been running pgbouncer (since 1.8) for quite some years, and today I realized I have connections to the DB from pgbouncer that don't do anything, do not execute any statement.


Seems reasonable that a pooler would open conn= ections to PostgreSQL to prime the pool even before any demand is seen.=C2= =A0 That way demand is immediately given a functioning connection.
=
David J.

--0000000000007b370c06273578ef--