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 1ujt4z-00DCjq-Os for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 05:22:18 +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 1ujt4y-002kgg-AS for pgsql-general@arkaria.postgresql.org; Thu, 07 Aug 2025 05:22:16 +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 1ujt4x-002kgY-MR for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 05:22:15 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ujt4u-001ADW-2Y for pgsql-general@lists.postgresql.org; Thu, 07 Aug 2025 05:22:14 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-433f78705feso227272b6e.0 for ; Wed, 06 Aug 2025 22:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754544132; x=1755148932; 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=/We8dpUSOuwZbKz62jlW2dTu9eyQXt8ZzakJJPVG62A=; b=RcfpS6IGvx4rQKYZiAReY9bs+2eJGRHLYQ7TlvPi3ONOBHXzklcNmqfNH7bo0HR4x/ GpfmVMacME0m6oCMSsBhEEyiU1BbIM4/ilhnfyH2tr1MegzdXrW0jbloTAyQTXvOvHIH FxSwl6yqOQ+yW1pSvFQoKLxlPFMfLFCacEvFIrfS1Tsz2BgsOBQhobQNmK+mNtdbnQ9Z zZg8KOBi6qrlR5IW4THRzg4VIaVGlMdN3lCJh5H/vyY0JwSiL4gftbU4nr1hUWHKFayO 2m4Co9G2KumiBpkmfjpqLGyCWHvG71wVatxQVbHkTNy5WHcaLsBV21x7AqjYK+or7iSm SDPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754544132; x=1755148932; 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=/We8dpUSOuwZbKz62jlW2dTu9eyQXt8ZzakJJPVG62A=; b=oQ+EMHjpUH+ozsc6frd503SvoDcYZXX1kckEpp/iEGN7085gZcYq/ImTeBqafe65Kh TSGl7In/LeFwk2zFRieHCnrhiimdJ4cA1cl1KJvr4jdQ4YhqcwYohZBlrlNXEOqFEzT9 zEf3QIXfbbC6UBt/my1kfCMHftjtN2gtlZxXQEVVZ81pnZuC9GbLZMQl8JHq7IYIAPOS gyLQVP8opnZ2JAJHY/cYPu6QB67JgUAA1fWbckGoG9iefjWF9lDW5AhJWOzHaBt1D+gi oF4Eeb1mELske302i79Lm5d2+nHSEFPL4EuTH75exobMsOhSsdofkcc5Ff4QG7GmJ2wR R+5A== X-Gm-Message-State: AOJu0YzK+Jsn+NlyK99iA7oqf29UQ9THDeckWaOsXj1dQMytVg2v9nBW Y2uTmmBVEWVbbEv2llU447v5KV+eMIK8Di7OIDbG+faj7J7fLST/YasPfOBcnrfNFP4rY9aPVxA pSGjYTUkml6kzepnXsYKfXE5dm5lAS/m/Cw== X-Gm-Gg: ASbGncsNdtoAtY18AbwslagN5Xsz9ttzPIcFEPtf4/8B4I6zVqwSffvY1O0iEDwgCqn /pOmla3vEMs1X3snqqpb/10KYruWtVGOOMCoD7Y4ADapk9fmiGW5wOTh+INY6uynrVMmiNpV8UG lDSQqBDn1Br242lvwyYi5nxu3KtkZNzvW69gTblU7v79jhCV3aFtoqZ5/tecYb2UKycqbLLFANZ ogjpn5h X-Google-Smtp-Source: AGHT+IEmu4KtwaLv12Vagda37H7IphUsNslRjQ1CPdovPS+kOAESaoBUhr75ihR0slNqlQNZ1aZc5rhJTERbyXN6X+Q= X-Received: by 2002:a05:6808:250e:b0:434:914:e183 with SMTP id 5614622812f47-43579f9488amr3921314b6e.13.1754544131926; Wed, 06 Aug 2025 22:22:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Thu, 7 Aug 2025 01:22:01 -0400 X-Gm-Features: Ac12FXw4wjFmMm6BY8B7mg8J7AmaTYqtRKNxTcd0cmM4ilN-pD4GikFRGPFCnzs Message-ID: Subject: Re: Approach for DB migration To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000b9f053063bbfa3dd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b9f053063bbfa3dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 7, 2025 at 12:21=E2=80=AFAM Siraj G wrote= : > Yes Ron, database migration service. But it works better if we have to > migrate all the DBs in one shot > Is that really a problem? But if there's a problem with DMS, then logical replication should do the trick. > since it converts the target DB into a read replica during the migration. > > Regards > Siraj > > On Thu, Aug 7, 2025 at 9:33=E2=80=AFAM Ron Johnson > wrote: > >> On Wed, Aug 6, 2025 at 9:30=E2=80=AFPM Siraj G wro= te: >> >>> Hello Experts! >>> >>> I have this environment with 100+ DBs and would like to migrate to GCP'= s >>> cloud SQL for Postgres. >>> >>> Primary: 48 CPUs, 48GB memory >>> Secondary/Read Replica: 80 CPUs, 128GB memory >>> PG version: 12.22 (we have already started the upgrade process) >>> OS: Ubuntu >>> >>> I would like to migrate 2 DBs first and a few more later. I was thinkin= g >>> of logical replication, but wanted to take recommendations if there are >>> better approaches available. We cannot afford breaking the read replica= due >>> to our read intensive app connects to this node. >>> >> >> GCP haa a migration service. Have you investigated it? >> >> -- >> Death to , and butter sauce. >> Don't boil me, I'm still alive. >> lobster! >> > --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000b9f053063bbfa3dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Aug 7, 2025 at 12:21=E2=80=AFAM Siraj G <<= a href=3D"mailto:tosiraj.g@gmail.com">tosiraj.g@gmail.com> wrote:
Yes Ron, database migration ser= vice. But it works better if we have to migrate all the DBs in one shot

Is that really a problem?

=
But if there's a problem with DMS, then logical replication = should do the trick.
=C2=A0
since it converts the target DB into a = read replica during the migration.

Regards
Sir= aj

On Thu, Aug 7, 2025 at 9:33=E2=80=AFAM Ron Johnson <ronljohnsonjr@gmail.com> wrote:
Hello Experts!
I have this environment with 100+ DBs and would like to migrat= e to GCP's cloud SQL for Postgres.=C2=A0

= Primary: 48 CPUs, 48GB memory
Secondary/Read Replica: 80 CPUs, 12= 8GB memory
PG version: 12.22 (we have already started the upgrade= process)
OS: Ubuntu

I would like = to migrate 2 DBs first and a few more later. I was thinking of logical repl= ication, but wanted to take recommendations if there are better approaches = available. We cannot afford breaking the read replica due to our read inten= sive app connects to this node.

GCP haa a migration service.=C2=A0 Have you investigated = it?

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


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