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 1sRdhF-00HIRV-St for pgsql-general@arkaria.postgresql.org; Wed, 10 Jul 2024 20:13:49 +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 1sRdhE-008dtn-AL for pgsql-general@arkaria.postgresql.org; Wed, 10 Jul 2024 20:13:48 +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 1sRdhD-008dtf-VT for pgsql-general@lists.postgresql.org; Wed, 10 Jul 2024 20:13:47 +0000 Received: from mail-ua1-x933.google.com ([2607:f8b0:4864:20::933]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sRdhB-001ReZ-Sw for pgsql-general@lists.postgresql.org; Wed, 10 Jul 2024 20:13:47 +0000 Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-81055d6f256so33111241.0 for ; Wed, 10 Jul 2024 13:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720642424; x=1721247224; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3+ZlxYJ9E1/5ACqzM0lxwTBuCsKYADeRn/9AmCw01LU=; b=PvMZTj+iH293pA9Lx2g6yxuTkR/kY26Sf/3FhBm5cted40wOq7fp59bOJE+EBjx+lA MpJJUQ2tV/6VkavGSKTxHGCKQYOqNCkm3CNOGJyirg9gyjNx+icmHjjzzt/pS6LS2pnt CYz35vxS/AM9mlCe2SLO0uCeniIKyfOSAvCOvBPRvWleKsK8/wYuokeotSKcBKUt3rJO XJny34S9ODmOJ+xZy4xHmKrPo2zMM80nRPmFTlStUgZ5ITQRnN7ovjl842BOoWuWiYPw AMEF0+EaZ085nY/zwjEJv/BYlGMzKWKQ967jJijGs492Dn3B27hewQzLbp6D2ytq6tkn 67Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720642424; x=1721247224; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3+ZlxYJ9E1/5ACqzM0lxwTBuCsKYADeRn/9AmCw01LU=; b=Ae9zimLJ0bRXcZOcwdV907xqBdENrJVypeIWVpyQW2gMa/HlU8bVECMHLLfUXiadM+ tAsXjoX6SgjYm7UUU1Z1Vgq3YQYp5xdjkYIoplaJUWgN43ZLXnqdhQB8u+eas4cvTdsy 64qaIgR02SBsko+RUPw0W+yzS+p3Xec5lU3IY4fdra35SggO+LkyajoF9VJ6xLXhPSLm 85u5IXoRy8Z3tjQtfdpLlRdmVO32WVZVtgh18YNHlHrpyBYwSKAZUZmQBbXbphMgwYiw 7dBpbvwqMtO2v8DlRl4qdlDleoHWsxbhmD+5ISSEl1osR/QYczyiGRycG/VrFeM8Wx8u 6f7g== X-Gm-Message-State: AOJu0Yw7qym4s+TOH40oNDP17lD3fTnIukFo81fMUEGLapbXmRd2Gvwf lxwi40K2uCDHz9fEKSo9KGwzRGOhbNBVw3ZX1M+Bhde+Hbbap5xbPcCBs+R+q46FreCyJwtyLVc uVTGhZPPTTMfnGIPp/LquiZZrSv2tenJ3 X-Google-Smtp-Source: AGHT+IGmrX3g9uQd/mzIB12FcwrEKjIUMaMVaZ0Oy++PEl7lCilHSNde7ZX8eWwQJfYC88K2ZMsbWusafFvHxtnuBJQ= X-Received: by 2002:a05:6102:441c:b0:48f:e9d9:3ad4 with SMTP id ada2fe7eead31-490321b9b82mr6732685137.19.1720642423869; Wed, 10 Jul 2024 13:13:43 -0700 (PDT) MIME-Version: 1.0 From: sud Date: Thu, 11 Jul 2024 01:43:31 +0530 Message-ID: Subject: Dropping column from big table To: pgsql-general Content-Type: multipart/alternative; boundary="00000000000075dd4f061cea481f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000075dd4f061cea481f Content-Type: text/plain; charset="UTF-8" Hi All, It's postgres database version 15.4. We have a table which is daily and is approx. ~2TB in size having a total ~90 partitions. We have a requirement to drop columns and add new columns to this table. I Want to understand, If this can be done online? what is the fastest way to drop/add columns from such a big table and what will be the consequence of this in regards to vacuum, post this activity? Or if any other issues we may face post this? Regards Sud --00000000000075dd4f061cea481f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,
It's postgres database version 15.4. We hav= e a table which is daily and is approx. ~2TB in size having a total ~90 par= titions. We have a requirement to drop columns and add new columns to this = table.=C2=A0

I Want to understand, If this can be done o= nline? what is the fastest way to drop/add columns from such a big table an= d what will be the consequence of this in regards to vacuum, post this acti= vity? Or if any other issues we may face post this?

Regards
Sud
--00000000000075dd4f061cea481f--