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.96) (envelope-from ) id 1viTQh-007Kgv-1R for pgsql-general@arkaria.postgresql.org; Wed, 21 Jan 2026 08:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1viTQg-005ouB-1o for pgsql-general@arkaria.postgresql.org; Wed, 21 Jan 2026 08:19:06 +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.96) (envelope-from ) id 1viTQg-005ot8-0g for pgsql-general@lists.postgresql.org; Wed, 21 Jan 2026 08:19:06 +0000 Received: from mail-dy1-x132c.google.com ([2607:f8b0:4864:20::132c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1viTQe-001Ytx-0j for pgsql-general@lists.postgresql.org; Wed, 21 Jan 2026 08:19:05 +0000 Received: by mail-dy1-x132c.google.com with SMTP id 5a478bee46e88-2b1981ca515so6797430eec.1 for ; Wed, 21 Jan 2026 00:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1768983544; cv=none; d=google.com; s=arc-20240605; b=YqTE7GfxdOM5jQra1teIpYBFu4gMR4zytjhhTtbe5/9aAMwwhAHlS/bs6cT6YgOHqq sCtZjXcCGNBj02SsIOBA3C/R8V2PiNiNFwW/1XCsM0mh21xmJnpv/Lxjj2RoZJvf8r1m izmEI17LsgsfBk9pDAs7vECaSX1XHguI1OCT54sVwXpGA9kotR7txf4CJZ7GPNFH4Yex woppQkGgcx0+MT3vaxdEYpdfgkgRDwQAStXX19tR+11IPj7NHiGdBE67AKthDLpH/SyK QPB4LVNE36kCHf5CthaGEdZTZu+6gudyvN7twjzuZhLxVNHglwQyy4Lj/jq3qN86ctfH E28A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=DQS6RK6F/COm8lxTCXEYEyZuhZM1+dQD1Fee0ROk+Yo=; fh=Y8BKYCMFTC6XGikLxKxVSHtO54ZSwiXldzwlYadcvXU=; b=V5PgU4J29WayVCKrea4RDaP6SpLNmr4DImrXcmpXTLQgveSHqAveCRc17I9kmoK82i Wi1mXoa3PgaShl1EdQTVl7bGC6EauiUKfxQwkaT325XEus6nSiXXFWXmlcHH6iZpV9Ah i5K5ZOyZcNUpFAk0vaqCjC6dg6MbQPkwYR9K96x+CB89FJ48UjIudGuKEhj/ti0281wB /9i1jze02nMLKuleLYizwUePtFmqsVWPhIB15/oHyA9DD8byCP1GadIlUF1WafVys6nA aeZjW3B/1OC3MmyddL6s4zRMYptR/AiTBShGZr7/4rzm37s6OfC72QQoFq+BK/H3UqI6 Opkw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768983544; x=1769588344; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DQS6RK6F/COm8lxTCXEYEyZuhZM1+dQD1Fee0ROk+Yo=; b=U0bp0FX78zUPD09JoF77WDY4U2fNdJWhkGtKsbavDPG7I1BusImju08ta8g3WUa5FF DiZLkFTRGeYzXX7RGTeiUCM6YUtt9R8Z3e2eGOvFdrPvg6dRjow1YB2SC3+5GZMI48sH P470m6s8LQJeexyLhQGlOg44+mTMXj1nwnx4/xtFNU1vJIhymSzhxaIoP/h8VXzMVoOz wE7EOqfoslsSMemxgPIkYC5+mJoNgWRh7ZfcMVza9ZlQrzRLfvtPRwum9QGv1LAVXRmN 8z6T13QnECuELiyDp6ZHKq/KjcG36KzO/msy+qQWkJ/dgaC2997ZOpcYS9MucB5P3G6g E8kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768983544; x=1769588344; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DQS6RK6F/COm8lxTCXEYEyZuhZM1+dQD1Fee0ROk+Yo=; b=KAp4f+jGPa2+OHO0u5Vt41uTg8gWMSjgZ/JrYfaO/C1WR31ZO53NslF2SN5Ixs974f tiNSCE1MftSOVlLLChtKBbpw8rLbnq/RQXX1Ase5quVjiIjM3S+W9LWaY6oT3wRh5eOT psXXpdIIZZFXXggdDq1YOGp6Q40uZ2JKlaLwTigC86WZYluxodud2fT9/T8d4k52BELb 1lEwxGhWoTk44rbphiS89K+wp+TYQB7VYXcDBy02ch8T9KOhmkh7EXWoiFJEnpuNRLTo KP5XZES5d+YTBzBGWiOIPb9TS+jRiPTD+Y+mDrOcU8keRp326qluL4clL2XjuyjqCtb+ 5A/g== X-Gm-Message-State: AOJu0Ywpd0Sj3lhYu6HqWbTnkTyWmhziTBBvnCRXC8OYllKTF/5JYzHr QISgpQZ04F/rTVbCm+wTtfy5vPoGeaNffmLi89l+LMcCatX/zGMnMN53iak9Z6G8U0GMn7OrsLI 8RtNYIGkCStmZqMRv9iWM7eyn1ij6/mADMg== X-Gm-Gg: AZuq6aJx0B2u5PkyHLtnhYz2UbOwyrBEcFsvFj/iIZpRCKfJyqGs+JNhsg4W6DDyGtj FW4WwmpI+5+wjckP1XX3rbEMeMbPcFD8zSyQ3eSJAalO6eeEuYwHkD/BUW9xlRSHMtPzCyOY2hJ kugNKigFnLX9o0VGPEEBjqWTLQTXsh1oJhf8rf5hOAjbaUd7KNpgqUU2jPXa2Eww3x8klj8esem pChVqKUYbnQ0ym8wMQX3IIKPI9NE+6KUwZlT4ZkIOYmpjjWPH1k52ft3ohniAL6yTN9z8hEEnof n+Rs5mB7AJoWlJ/wyWtBMXoyorMjD8pK6KhwMOnHYOWqubrISoLAykKLHTXOSUoYWgI+w5axnHm 5Fmc57PxixBnOVnx3Sxr+ANYqVK9zADWiIUMZ7nYyRH+fQOxgWuhj/Yt0pl6c7BvisKWO X-Received: by 2002:a05:7300:d517:b0:2ae:579d:2038 with SMTP id 5a478bee46e88-2b6fd625551mr3372704eec.4.1768983543675; Wed, 21 Jan 2026 00:19:03 -0800 (PST) MIME-Version: 1.0 From: "Colin 't Hart" Date: Wed, 21 Jan 2026 09:18:52 +0100 X-Gm-Features: AZwV_QjhdqYCxgqaMGyt8pj2zOhXPcFOXdhpWEQT7819lZ7HqJgqIy1AMu_IRgE Message-ID: Subject: pgBadger and postgres_fdw To: PostgreSQL General Content-Type: multipart/alternative; boundary="000000000000bbfd9b0648e193ab" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bbfd9b0648e193ab Content-Type: text/plain; charset="UTF-8" Hi, One of my clients makes extensive use of postgres_fdw. After a migration performance isn't great. pgBadger reports show the slowest queries all being `fetch 100 from c2`. Anyone have any tricks for being able to associate those fetches with the queries that were used when declaring the server-side cursor? Thanks, Colin --000000000000bbfd9b0648e193ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

One of my clients makes = extensive use of postgres_fdw. After a migration performance isn't grea= t. pgBadger reports show the slowest queries all being `fetch 100 from c2`.=

Anyone have any tricks for being able to associat= e=C2=A0those fetches with the queries that were used when declaring the ser= ver-side cursor?

Thanks,

= Colin
--000000000000bbfd9b0648e193ab--