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 1vvl5o-000RLz-1r for pgsql-general@arkaria.postgresql.org; Thu, 26 Feb 2026 23:48:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvl5m-00GQtz-1c for pgsql-general@arkaria.postgresql.org; Thu, 26 Feb 2026 23:48:26 +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 1vvl5m-00GQtl-09 for pgsql-general@lists.postgresql.org; Thu, 26 Feb 2026 23:48:26 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvl5j-00000001NyR-054m for pgsql-general@lists.postgresql.org; Thu, 26 Feb 2026 23:48:25 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-38709888abeso12172331fa.1 for ; Thu, 26 Feb 2026 15:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772149703; cv=none; d=google.com; s=arc-20240605; b=im8V7ih7Hk2/2rTNLPa48S994oJb9/j7+x4dC0z1JG23yhimryyPusJw/tO585VQpg /eWfOin8i/oZvo625CMtW13tAUuE7KCnNpp2qS2WrLT1DEoIrSgmCFD1162Ody8RYnw5 HVgOT0ZRURPlALdkPQhZBbPrNZePuRLzra7e+8OEa7+qHIWfmflJZlM/RWYQi0o7leex 7bJc+0Y604NH73DU7oJu2dCEUH/76wi1ypdlzNdOrKFwRzuDVYnZTCb1blJg+ftwnwpI HwluCFP/72swnedDParOKkxrkv5uQYs3ul5JC8cIv5+rm136EDuBAEdJDSrHiNParUeN /zkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=lz6kP7OaiWeC8aM+yLK+KD60tBWUZohsWFqccj6qWtI=; fh=M5d6ZpcaQVHTXkkOH6MmskvUc9TU9yzFINFTBAvu35o=; b=fVF3CHgqqeoeOA80h3JoCveoM7W14igHrmPpL6k8X6h4tRMdaMM6HhiBmOpKLEgWiU eE91DFFp8wkpOZ2APe8Ytxe+neT8uK1lJzcrjjTAw8pt4zM9XUe9AO1mZlcS5/5G2+qO YUZ3QeFINxtaK2rxpF+fo3lL4xnwGGg9fO0SeLM8a6kLFPpInNWGKoDwHvbHkTyG+Ddj 0y3gz7IllSAiv1A7SwrXvGcoZBHM8dWswfx+ZJcEGrgvHJMOXHSiqBUX1qLsFqhmqyED lbI7e4fBmPg8e/085vuTps4e5x13poTlLgubW35P2kvNCu00H1FvxdHgNulgLP2bQvl2 sorA==; 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=1772149703; x=1772754503; 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=lz6kP7OaiWeC8aM+yLK+KD60tBWUZohsWFqccj6qWtI=; b=DQKbzP7+CpN6d/FxpIc8Ms4iNEacZd0GovbJB1q0qNE9Kc9PL3rrAtkRssP6tKsrZI ymCTkIkw7WB8bS69phVqztzmF4dy4DyFFXLMHMyF+9RRIF7MrKwbHIa7OYsu9RJfddD0 NpkWw5fAj+eZP01nhT5H+4bTytZJMobPevDIiBgyclhgXuyoJ6gYQqIkxNnqxK+pUgif EWIcamFUf+32i/FGF/PSKRL+lSyEOYpnvv6F5CAjPiPN4dGNfQZbWo+IyOQUPgtX3gY6 jkUgXeMlzbgVLOcWfgGsWX7dCtTA5OHWMWi7uJmBJxbyfAVRnKR50ooNR9X2zhvrVsSN 2t6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772149703; x=1772754503; h=cc: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=lz6kP7OaiWeC8aM+yLK+KD60tBWUZohsWFqccj6qWtI=; b=RUX2iRcGecHQfc3BnoOGAnlocKHewl+tYFS+NQZU5OaEC/PhPWvHASJflbBTK/2ued mOiKStgri5qvKh3OMGiBNCmIIxrSEX7ky6IPirtAh0O6YzrUOTXdaCDpSED9DsgK9XT/ 2GTiE5YixbIIdGzPzEYnk6dVGpVQ5WJhmwV6b6c8GWTYBSCz9pI8JfzTYN8U3fJArkdT nWWAcyQeMk1qp3INt4Svl+m5oMK3BlTvo1JK3Lek4oO6XypvrOqp6XxQw+hVHqcXXlFh DhwWMq6XRMiof2BCk7HfhRwW+UmpR3qSw8Z5FNbL32eCqUVSb5MB8hUZuM0CufKFL5TT JVgw== X-Gm-Message-State: AOJu0YzEV5VWLlr6cRg2LsJd57em9fAHfyGQ7YpGl+HIExZbvPsO9ZxD J561kF2h9lOEx47oaZjs2S2LD4Nm0k6+MqURqFuQI5H668vy+uuZgi/3sUGCxedKBt/OtcLjjos fp2P0RZAL/Mvj8gn6evoUSylCEA0CSEo= X-Gm-Gg: ATEYQzxl95qr1xRNoD0x4o0nfVph18Hv/dy7gVujGb2LHhIdzp7f7IJn0rMS+iiEAfW qYV0UXv/adyMo/ahroFnOqAW+vgI71axCkScoxjoZRNtEH3V6Gy6nhZkRbHuSktLbbai5xH7i6H 45FtFpAtfpAXRQ+t8Uo8sxlJSAKtiehEmoexmx7/p3bS5S+faHI2Q/0I65Ul38+hQIqZu0A0VZH Lc5GyRxxcFG7Q/oGBeDO4eLa2qecqIX/LNHPS1s5GHhvBffhVLImGHmFZ2wUKQwvRMeRmbBkUtB 7FyKnZuBGi/ggkawpyU06FZIRYrl+aeCjozQm8OdX8jkieEJ7G/H4KXqXURRlX6/Prs= X-Received: by 2002:a2e:9246:0:b0:383:7f85:8eef with SMTP id 38308e7fff4ca-389ff356ffbmr2516101fa.29.1772149702301; Thu, 26 Feb 2026 15:48:22 -0800 (PST) MIME-Version: 1.0 References: <7f97d4a8-1f3f-47b1-8c42-5e0b8c46d467@aklaver.com> In-Reply-To: From: Michael Nolan Date: Thu, 26 Feb 2026 17:48:11 -0600 X-Gm-Features: AaiRm51nTrpfI1SAQ8U0h4KQKNT-Dy1T8xdMjDYuDCE9vRjAS4oxptudsmMbIZY Message-ID: Subject: Re: Issue with refreshing materialized view from another system To: Ron Johnson Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007e9cfc064bc2c12d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007e9cfc064bc2c12d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can run select statements on the mysql server from the azure server, but the command we're using to refresh the matview is: REFRESH MATERIALIZED VIEW memmast_ratings; Mike Nolan On Thu, Feb 26, 2026 at 5:45=E2=80=AFPM Ron Johnson wrote: > 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 = wrote: > >> 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 inten= ded >> 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 >>> tables >>> > 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, bu= t >>> > 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 >>> >> > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! > --0000000000007e9cfc064bc2c12d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can run select statements on the mysql server from = the azure server, but the command we're using to refresh=C2=A0the matvi= ew is:
REFRESH MATERIALIZED VIEW memmast_ratings;

Mike Nolan

On Thu, Feb 26, 2026 at 5:45=E2=80= =AFPM Ron Johnson <ronljohnso= njr@gmail.com> wrote:
Mike,

1. You= 9;re using mysql_fdw to connect?

2. What happens w= hen 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 <ht= foot@gmail.com> wrote:
My understanding= is that the mysql server is at a Linode facility in PA, the current produc= tion postgres server is in Asheville NC, and the intended new server is a A= zure 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 dif= ference because 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 n= et connection itself is probably not the issue.

Mi= ke Nolan

On Thu, Feb 26, 2026 at 4:11=E2=80=AFPM Adrian Klaver <<= a href=3D"mailto:adrian.klaver@aklaver.com" target=3D"_blank">adrian.klaver= @aklaver.com> 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=C2=A0to 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 t= he
> 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= <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!
--0000000000007e9cfc064bc2c12d--