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 1uL03Z-00GBuV-Gf for pgsql-admin@arkaria.postgresql.org; Fri, 30 May 2025 13:45:57 +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 1uL03Y-00204O-3i for pgsql-admin@arkaria.postgresql.org; Fri, 30 May 2025 13:45:56 +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 1uL03X-00204F-Ov for pgsql-admin@lists.postgresql.org; Fri, 30 May 2025 13:45:55 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uL03W-000iZG-03 for pgsql-admin@lists.postgresql.org; Fri, 30 May 2025 13:45:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id B4E99E334B; Fri, 30 May 2025 13:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1748612752; bh=/OzL9ODo/fk/UZTaEOlwWwPz1vouqx54UtvbALm3m4s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DHbOojMKssb0p4UkJGI1HPsitV4p0xTDOMbhOcdHHmmJAwIx0K+xn4j0U5fGiMVzs kIRHWej3TU320HdE41g546rcI9gSpB0pm3RyaIF7n6jU01dr2I9YuTzfFaNpRoeOBn z2YHvyNXmQmbOWdCPBU0Je0u7OeYJlL8BCMaSPd3x+zFEEhkUSyar+Q7Iw3t3PIGWp 0MnKDk5D/d7afesyzeWDBnYJ6dX5iS7W10WGSwKtiyDjfNyDMgRDgHdxjLykNhJyms O05zmwN52FRsIjTBTcrXzYf9G8Su++org+/MWOENdI4POm8E29IB8lVBvSR9sbrJs6 7+eAGnetifEzA== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gD_icYkuWmwC; Fri, 30 May 2025 13:45:52 +0000 (UTC) Received: from smtpclient.apple (165.140.184.195.ip.vcn.com [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 49EF6E3349; Fri, 30 May 2025 13:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1748612752; bh=/OzL9ODo/fk/UZTaEOlwWwPz1vouqx54UtvbALm3m4s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DHbOojMKssb0p4UkJGI1HPsitV4p0xTDOMbhOcdHHmmJAwIx0K+xn4j0U5fGiMVzs kIRHWej3TU320HdE41g546rcI9gSpB0pm3RyaIF7n6jU01dr2I9YuTzfFaNpRoeOBn z2YHvyNXmQmbOWdCPBU0Je0u7OeYJlL8BCMaSPd3x+zFEEhkUSyar+Q7Iw3t3PIGWp 0MnKDk5D/d7afesyzeWDBnYJ6dX5iS7W10WGSwKtiyDjfNyDMgRDgHdxjLykNhJyms O05zmwN52FRsIjTBTcrXzYf9G8Su++org+/MWOENdI4POm8E29IB8lVBvSR9sbrJs6 7+eAGnetifEzA== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: Seeking Suggestions for Best Practices: Archiving and Migrating Historical Data in PostgreSQL From: Scott Ribe In-Reply-To: Date: Fri, 30 May 2025 07:45:41 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <9B8D6FBB-9ECE-4A19-84D2-FF258412D552@elevated-dev.com> References: To: Joe Tailleur X-Mailer: Apple Mail (2.3826.500.181.1.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 30, 2025, at 7:39=E2=80=AFAM, Joe Tailleur = wrote: >=20 > 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?=