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 1tXC95-004fWm-0Q for pgsql-admin@arkaria.postgresql.org; Mon, 13 Jan 2025 04:33:47 +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 1tXC93-006knh-9P for pgsql-admin@arkaria.postgresql.org; Mon, 13 Jan 2025 04:33:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXC92-006knY-SY for pgsql-admin@lists.postgresql.org; Mon, 13 Jan 2025 04:33:45 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tXC90-0006f8-2k for pgsql-admin@postgresql.org; Mon, 13 Jan 2025 04:33:44 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-3003c0c43c0so36327511fa.1 for ; Sun, 12 Jan 2025 20:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736742821; x=1737347621; darn=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=w/Tx7efg9z2KVCNV/0FVvhNuYQopF/qQZeD8ohLMQcI=; b=d+udZAnE36dNtoF5d7bDImMWOcgFZwOPr18d6W/WzdWRCGKzdoxUxqZIGxxTeXr23g VsqvREKadgYT3enhX5rDPuLAoy5vNdjAknKMvtcHrSaBMRXJN0YV1lYLi+n1N4a6dO+J khx5pE8j9rJpthl36ZNJMRdRCprZc/irFGTpi4QJ//86mFQFV/gKvwEqGay2YXce/TYz 9JXAq/pzJPfpVOIhj6bVWNHfqCzLBdTAYWEcj/jseDi9FxfTPr1DdpylPHyM6jikDasc ExSEuVFDK23mE+ob3fvueNnk2gaKJSLxdFyVaRxExdJF572BIZSuYc+kzR9kL0H8MCVt NzVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736742821; x=1737347621; h=cc: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=w/Tx7efg9z2KVCNV/0FVvhNuYQopF/qQZeD8ohLMQcI=; b=f9QAq4DJArCiFR2Y3MlptrCKFpkC3+2MbDbA+h6FPmQ2/l4Q2Ls+jq1keoJX8X5QDz 605zekHO7A+jagjpUaNCg2mykhl59oQIOy+BxIBqzf/uDNUSit82r3DQppvbwuZtKnWN +jfdahwNenIFYLYQpOiqtnLghbNqNsexBOqTxKfhKmuW4MogT/hRw3fJHA+aUVr7MXRk yohneduKQ2UVvPBiQzar0l/2gwIq68ihZnmMaCHN2uqhCPl5ZCmdLX9V7atOq0/h5vS5 sflqQwV3tGDtyEI+9tE9hv4ejcGQbyOu2v1KPFtWKQDDrVo//Jsdtl0Q78ddeX4dBpzF n8Xw== X-Gm-Message-State: AOJu0YxzEY1JrLCnq/odhOE1tWtoOk0gA0uNo0Na4WOSol7oWxfV5Dqf gpJ9OUe5GxKou7qDDwdwwDXEvMaW8W5UnM8WoXlIHGnXhOgsOzrCq4ySaKhBLpBtpp+OhJVpm/a GFzW8DCtZD/I/plIbdgHNitF3wHY= X-Gm-Gg: ASbGncsEsffGcZz2J13HM5ZcqKWnfWscpYnsbSCo3LAP0TAie116e5jwc6/o/6d8kQA JjaTu3tXAhr9yGV8cors09D28V7/dSWIuCcI/8/CL5jEgqHQvghCgZT134EeRZQpaj6lqbKo= X-Google-Smtp-Source: AGHT+IGAVhDVp/fQFMOh7khbhtAgOZ5RIfnv9hLM+1Tg7+KQj1VmkpSDeWaQBaWn02DpPpoMxbk+QvLYIRWimaazzfk= X-Received: by 2002:a2e:a99f:0:b0:302:1fce:3938 with SMTP id 38308e7fff4ca-305f4547730mr63394801fa.11.1736742820445; Sun, 12 Jan 2025 20:33:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Mon, 13 Jan 2025 10:03:27 +0530 X-Gm-Features: AbW1kvZNII8yJg2hOQpE7UZk9T_GtEz_fCODG5egHY-9Syg6X2yPBledAcDuRgs Message-ID: Subject: Re: Archiving solutions To: Ron Johnson Cc: pgsql-admin Content-Type: multipart/alternative; boundary="000000000000e1068f062b8ef29b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e1068f062b8ef29b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What are regular housekeeping activities @Imran? On Mon, 13 Jan 2025, 07:27 Ron Johnson, wrote: > COPY exists, and is very fast. > > In my experience, DELETE is quite fast when you: > 1. have a supporting index, and > 2. don't try to delete too much in one statement. > > Those are the only PG comments that I needed to archive a 6TB DB down to > 2TB. > > On Sun, Jan 12, 2025 at 3:42=E2=80=AFPM kasem adel = wrote: > >> Dears , >> >> Appreciate your support I have 2.4 TB database and I need to implement >> archiving solutions to prevent data growthing. >> >> Thanks >> > > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! > --000000000000e1068f062b8ef29b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

What are regular housekeeping activities @Imran?


On Mon, 13 Jan 2025, 07:27 Ron Johnson, <ronljohnsonjr@gmail.com> wrote:
COPY exists, and is v= ery fast.

In my=C2=A0experience, DELETE is quite fast w= hen you:
1. have a supporting index, and=C2=A0
2. don't t= ry to delete too much in one statement.

Those are = the only PG comments that I needed to archive a 6TB DB down to 2TB.

On= Sun, Jan 12, 2025 at 3:42=E2=80=AFPM kasem adel <kasemadel8@gmail.com= > wrote:
=
Dears ,

Appr= eciate your support I have 2.4 TB database and I need to implement archivin= g solutions to prevent data growthing.=C2=A0

Thanks=C2=A0


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