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 1vvl36-000OuS-0M for pgsql-general@arkaria.postgresql.org; Thu, 26 Feb 2026 23:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvl34-00GNgd-1i for pgsql-general@arkaria.postgresql.org; Thu, 26 Feb 2026 23:45:38 +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 1vvl34-00GNgP-0G for pgsql-general@lists.postgresql.org; Thu, 26 Feb 2026 23:45:38 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvl31-00000001NxB-06b9 for pgsql-general@lists.postgresql.org; Thu, 26 Feb 2026 23:45:37 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-c70ea5e9e9dso563989a12.1 for ; Thu, 26 Feb 2026 15:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772149534; cv=none; d=google.com; s=arc-20240605; b=I219ovFYposmMQ3PF6x7N+svf5rlhdz+Hek6zFJjfHH9Pj3Uk5I71l1ZVHjb9PGhj3 z3gJ8WHZ+paMMVakHQYRFWrI0KrmC6wlVn+U5CY0K/Vu6HR4yOWa5a7BZ12kAqSy0tuc WhiQ0Sg4y93SaVqW+xJJuS2oxrF3hIdaxdXRO7aICFQIJcqQneuX0yfn2zooQhJ8YiyM N8cNKUNCTKg9gYySkA+x/IAVPaAVpmFUfuxMXv5DFUNKrPK/AaFRhmhjOPDMuW4UPI3s k4+IG/nyNnRNsfkd2D6prCFMNHaPaSbqXE1pEv9msZYcVAtZ0twbLADJ37A0Ts3kx+2k ne0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yQE6oCvisbfdMnu5sLUj2kURyq5niLY9omRycC+iyOw=; fh=2DoGC78b0mi8uZ4UY+9ocPF86GSVzeaJWqou/x907js=; b=D98nuXVjhurc0WEMQrJiAUWoUG7DYND255YbjE8L+BAH6ReLfHfykctZi8MXXE6Ovi jjHLiS//X9AYBc/KlDLRGNV3wWOAMqVEIZgS3McFFoRflYczv47XmjkdUAuOAzRXSM8Q h6+PLWhZzuz+1tR3gy+QHB8+fkRAcTRLoFYGghSr6htyw7EPHd0IN4mgU49zQDtalz3F w0m4LQCDTEJi4X4xiFmRsdgLtr7h/i270OnD9do+b0jxdRYFWIXpi93FztFsUtrPVkAA sIzwf/0CcLW2Tmqy/EO/xaFZCOexKmcNNgGtE3aHAyt/M4dz7RT98f3k0MXJLr5lPwFU E6NA==; 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=1772149534; x=1772754334; 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=yQE6oCvisbfdMnu5sLUj2kURyq5niLY9omRycC+iyOw=; b=LokxY6gxixmEQRd08rhu+zz2iEOOyurj1TDjSAiqt98sWLVYLMUEr9J5tas4BbAVVO XJhWzYFCRQcd8qk/LNTXV/2CP3cEIfwHR5wkx1KSWRrEEkhnZRxQ+/XeXF1cpiBmJQun DnJsvJMyJYwbpW6BmE7aXbayb8nJpT+1Zo1MhpjRAvHkw/HKFv3nywl00UQ2aEzWvstA dFHuEKUOwYt+yTL0jFuq95YXCtEhB7tM0ZeGDZdtaS2TAN3wlC/rn7IqJYsFY1RoASnP GaO4BcgLKy0CkJ/hDhjlJjCe3mtAu2nHVRbIRNcQs21PJ7Oa9AUhhxcor9B46d3G9cNt 0Isw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772149534; x=1772754334; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yQE6oCvisbfdMnu5sLUj2kURyq5niLY9omRycC+iyOw=; b=xT76ZI7MbLQZ6LZYDLvyMd8wI02dfKvYIgIRJtqiNjvSrGSb9/RIKaHqXoqmPuVWpu sTiKxX8euOWH7nsU6+eFCCOciw0D/eV6/PdqlmMLnH7BPxyvx/PQWlPesQnPNeXadp5f Z49C/4MB0uPpk9QcjDAce7Cf7l+T7seSfNo76Ej4Z5+s8j8/2bZf0bAEnXyJx1u2fysC HkUQhfRDHUbeXLfNv/NXc0n0wVfmoitlqOgXtKEDaWtLNgBbs6xZrcqI5dGcWO+itQGb OQxkDf6GFwPdHhjiQWP4E94gqDWqrQRHKZ0V3a31TbtWzKFe+DNGn9FWpUaRLgyHbLkR yQZg== X-Gm-Message-State: AOJu0Yw1xOBRTY7nsv26L/Eefww1QWr9YbCyibPXISh2dNVmXo/OMiRp DcaslC5otqBHCMBqJw0NLhvVtc3lQUJf1+vmqiBqv/qmdHqDAwfmTPAuhW3+u+Scc0kTP7m92EG YI9n/uKAPvXWRK1zFOMHeqie9BWLgdOJufw== X-Gm-Gg: ATEYQzz2sBWcB2xYfp10GTJHCSg5TlTMSMuSsRrC8iMo6vlOF9SAgWUSjXutqZM1kDv VVodt9MQhhQhDOe4i3eHcoCHHwIkvHgDHs3CGX+GBpOcSVN5njokrEn3ERq0QFizt2gDCDTE55h y0FMf+/gxLafEJp4GPpq8ZZQChFO+UbK+DxzE/SOj2DiU6IqQaBGgz/pJ4SA2Gsu3mza9enYp+D 39OTxae5O6cKeIjS+EjVp7Dkyqe0p0jUCZLIItKlYzhjDvIHsPQr8sAOwTIWjvvlK1Qgm2LRuKM ZSC2KYqrsQRxiVMUE8M= X-Received: by 2002:a17:90b:5205:b0:356:22b5:704f with SMTP id 98e67ed59e1d1-35965c4fd27mr713185a91.15.1772149534188; Thu, 26 Feb 2026 15:45:34 -0800 (PST) MIME-Version: 1.0 References: <7f97d4a8-1f3f-47b1-8c42-5e0b8c46d467@aklaver.com> In-Reply-To: From: Ron Johnson Date: Thu, 26 Feb 2026 18:45:20 -0500 X-Gm-Features: AaiRm52u6dvH6uTmnF5ow9rVeVlh2PCsC0KDwfeuJZ3XgNOYIeklfoe_dgDh8pY Message-ID: Subject: Re: Issue with refreshing materialized view from another system To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000079663d064bc2b763" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000079663d064bc2b763 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mike, 1. You're using mysql_fdw to connect? 2. What happens when you just run the raw SELECT statement (redirecting stdout to /dev/null, since we only need timings and error messages) from psql? On Thu, Feb 26, 2026 at 6:37=E2=80=AFPM Michael Nolan wr= ote: > My understanding is that the mysql server is at a Linode facility in PA, > the current production postgres server is in Asheville NC, and the intend= ed > new server is a Azure server in the eastern US, not sure exactly where. > > The two small matviews refresh, the two bigger ones fail, so it seems > size-related, which is why I was wondering if the settings might make a > difference because this server isn't fully production-scale yet. But > weve transferred 175 GB files to it in about 6 hours so I think the net > connection itself is probably not the issue. > > Mike Nolan > > On Thu, Feb 26, 2026 at 4:11=E2=80=AFPM Adrian Klaver > wrote: > >> On 2/26/26 1:59 PM, Michael Nolan wrote: >> > We have a connection from a PostgreSQL server to a MySQL server which >> is >> > used to update a materialized view on the PostgreSQL server from table= s >> > on the MySQL server (running CIVI-CRM, which may not be relevant.) >> > >> > We are trying to move the PostgreSQL server to a new cloud server. >> > >> > On the current production system, all the materialized views work, but >> > the biggest of them can take about an hour. >> > >> > On the new system, the smallest of the materialized views works, but >> the >> > larger ones all seem to time out. >> >> "... move the PostgreSQL server to a new cloud server", where is that >> relative to the MySQL server compared to old Postgres server? >> >> > >> > Could this be some kind of setting on PostgreSQL, like a memory or >> > buffer issue? >> > >> > Mike Nolan >> > htfoot@gmail.com >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com >> > --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --00000000000079663d064bc2b763 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Mike,

1. You're using my= sql_fdw to connect?

2. What happens when you just = run the raw SELECT statement (redirecting stdout to /dev/null, since we onl= y need timings and error messages) from psql?


=
On Thu, Feb 26, 2026 at 6:37=E2=80=AFPM Michael Nola= n <htfoot@gmail.com> wrote:
My understanding is that = the mysql server is at a Linode facility in PA, the current production post= gres server is in Asheville NC, and the intended new server is a Azure serv= er in the eastern US, not sure exactly where.

The = two small matviews refresh, the two bigger ones fail, so it seems size-rela= ted, which is why I was wondering if the settings might make a difference b= ecause this server isn't fully production-scale yet.=C2=A0 But weve=C2= =A0transferred 175 GB files to it in about 6 hours so I think the net conne= ction itself is probably not the issue.

Mike Nolan=

On Thu, Feb 26, 2026 at 4:11=E2=80=AFPM Adrian Klaver <adrian.klaver@aklaver.c= om> wrote:
htfoot@gmail.com= <mailto:htfoo= t@gmail.com>


--
Adrian Klaver
adrian.klave= r@aklaver.com


--
Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.
<Redacted> lobs= ter!
--00000000000079663d064bc2b763--