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 1uL08U-00GDZg-RV for pgsql-admin@arkaria.postgresql.org; Fri, 30 May 2025 13:51:02 +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 1uL08T-0027jR-HK for pgsql-admin@arkaria.postgresql.org; Fri, 30 May 2025 13:51:01 +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 1uL08T-0027gN-5j for pgsql-admin@lists.postgresql.org; Fri, 30 May 2025 13:51:01 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uL08R-000icQ-16 for pgsql-admin@lists.postgresql.org; Fri, 30 May 2025 13:51:00 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-2da14a6f89aso830906fac.2 for ; Fri, 30 May 2025 06:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748613058; x=1749217858; 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=/Azy8/7UpSi8tdorKQc50t9GGS43I0NAUZybvt4fJpQ=; b=OIn2s41UDoIMKFk93uY7iwvSPNqN3wTfW5O7Bqb+UQfQkqwN6FmKmVuB9wUybJjNit uq4PuYXOF6gC6Imdl13TC/ie33ozRDlw1d44l+hIsCAzPEmEYMzEI8qm1PYWuo8xWgRr i0zvHJPkw3leB6l1sMuYYonmJKTW4L1zLyMn9FIQQ7zFeF86kMC8qgyGI9Xaej9rsw0w ciy3dz3hk0HvL8IpQgTfVoQDS4xdd56CtKr0GTVnwjIe3lH7PGmbZscP2IhMSVsZ0B2V 0ApIXipcEfxnXuWZAwwLkArUKR+3DYfAIAauY8ib6Q3e+C/DV96Z1kkOSzFRyxZo3vK2 9d9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748613058; x=1749217858; 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=/Azy8/7UpSi8tdorKQc50t9GGS43I0NAUZybvt4fJpQ=; b=cF2hzmXHQrhJrUs/F1FnBi7RpvqIuB5S7zSLD+zS4Y/0M4742+03OGKab4E2ljFkAE gT5UmPUvmKyTa+hZP2HVJJEhSJSJFPF+/NjEqGovdMVgw6CAVw00/Ea8UqD/UOXxCo6k afx/C06ZfSL+GAHKFDYM8dPICyjmsyR/RVl/sx3SwGiYFvwwnavJsF29+b33As82L7ZN ECyPPVn4UIfPxaEifxfzF88DW8uz50ZBPRCQvOaSLD5QnLanbXEsTHzU60MaoC+qdZgV P4mjstF3K37YVUvFMoIhgsgg2ad4Tu0aarnr5JbAXA7YG+fMDbdG1akA0cg5316pyh8H DG8w== X-Gm-Message-State: AOJu0Yw+8M70p+0FKfet8R7eUdCug+G3b0WkeD8uvCV9wWNjJv+3OV5O uPU4/nPOLg8T1klWZ8Qlf6epJ4G4RsncCC8UZo+fueLtu9KRVx5edSx2YnqnDv/Qtl4N0D26U3u cZ+FB3oflPwNX0pgqXoSMN2KoXXOX9Ockvg== X-Gm-Gg: ASbGncsRTXxxp36AR999U+iZ5y7Zp9iaPd7RxqcLlCR2fI7n0mse7oGMUTaDyQ7/6Qw 72XaV/WVJxLYhn90VnZzkVuUpr1654xpwTiu7No5Soqd8oPqKaN6o38/24rWIauQXPLg5Tff00Z 6I61ExpjUItPzW0WQ2X+0+eRbdvVe+Dg== X-Google-Smtp-Source: AGHT+IHu7h6mFRR0gB9rWtOOBRkkdycV8Nhx+6+ModJ0AhqbZlUIEqDMn5ksnFnbnG3TspKp/gCAbejOCShY8wvAdLk= X-Received: by 2002:a05:6870:e814:b0:2d5:a360:7df9 with SMTP id 586e51a60fabf-2e921167580mr1549355fac.5.1748613058244; Fri, 30 May 2025 06:50:58 -0700 (PDT) MIME-Version: 1.0 References: <9B8D6FBB-9ECE-4A19-84D2-FF258412D552@elevated-dev.com> In-Reply-To: <9B8D6FBB-9ECE-4A19-84D2-FF258412D552@elevated-dev.com> From: Joe Tailleur Date: Fri, 30 May 2025 07:50:47 -0600 X-Gm-Features: AX0GCFvoQBILv1BWtbisLJlvZ8nnAa4Tzljoyz140UgaZaWxsHYEb0tUnT_w-go Message-ID: Subject: Re: Seeking Suggestions for Best Practices: Archiving and Migrating Historical Data in PostgreSQL To: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000002fb55c06365ab4d0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002fb55c06365ab4d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It allows me to easily backup the schema (regardless of the number of tables). I can move several tables into that schema, and back up the schema. Really just to help me organize my own processes. Joe. On Fri, May 30, 2025 at 7:45=E2=80=AFAM Scott Ribe wrote: > > On May 30, 2025, at 7:39=E2=80=AFAM, Joe Tailleur > wrote: > > > > Using table partitioning works well for me. I detach and move the > partition to an archive schema; which I can then backup and restore into = a > separate database, and once that is complete, remove the table from the > archive schema on the live database. > > What's the purpose of the archive schema? --0000000000002fb55c06365ab4d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It allows me to easily backup the schema (regardless of th= e number of tables).=C2=A0 I can move several tables into that schema, and = back up the schema.=C2=A0=C2=A0

Really just to help me o= rganize my own processes.

Joe.

<= div>

On Fri, May 30, 2025 at 7:45=E2= =80=AFAM Scott Ribe <scot= t_ribe@elevated-dev.com> wrote:
> On May 30, 2025, at 7:39=E2=80=AFAM, Joe Taille= ur <joe.tail= leur@gmail.com> wrote:
>
> Using table partitioning works well for me.=C2=A0 I detach and move th= e partition to an archive schema; which I can then backup and restore into = a separate database, and once that is complete, remove the table from the a= rchive schema on the live database.

What's the purpose of the archive schema?
--0000000000002fb55c06365ab4d0--