Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBuxf-0006yC-Es for pgsql-admin@arkaria.postgresql.org; Mon, 24 Jan 2022 08:44:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nBuxe-0003Rz-BQ for pgsql-admin@arkaria.postgresql.org; Mon, 24 Jan 2022 08:44:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBuxe-0003Rq-0K for pgsql-admin@lists.postgresql.org; Mon, 24 Jan 2022 08:44:26 +0000 Received: from mout.gmx.net ([212.227.17.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBuxX-00060u-If for pgsql-admin@lists.postgresql.org; Mon, 24 Jan 2022 08:44:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643013857; bh=0/XTC/0s+iRfihAXTQ6mjFjFc4HA2Xpq8UG/DqGmawE=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=Lo7g1WNKYDBRWziii6s3quWUAE7+/fq+J8HfmuN1DvKQ6X3sifcR1ue3BFJaw/x53 uLjAUX4/U3TxJnni7aNEPqrOi6u33LT6bo3FIIH+sCqx5zjSXOzorUK7EZlRImwnoG r2Gu14vXMB5onZKZW6ThqeApSqA4VCmkvPkAoLNA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.1.35.183] ([185.40.248.10]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mo6ux-1mVyMl47yt-00pdOt for ; Mon, 24 Jan 2022 09:44:17 +0100 Subject: Re: Determine potential change in table size after a column dropped? To: pgsql-admin@lists.postgresql.org References: <84b61f419a0a5ba1049c7d74a85b6790bfe9e1e9.camel@cybertec.at> From: Thomas Kellerer Message-ID: <171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net> Date: Mon, 24 Jan 2022 09:44:12 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: <84b61f419a0a5ba1049c7d74a85b6790bfe9e1e9.camel@cybertec.at> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:zjrTCmXj9ZCeE8ArItM09oxsxzQpCIef+4gHwUp9zrJp5MVsKIO CyERjz1jcVriiLXe84HGxSzAc6BOi40fURT3NXHe6FXQxMcFsbSPK7Vu8RRQn25x0slYvTb 02CHQ0nee1xwczlZOq1DM7j9BWdo6fRdZxul4YF6LzptuxLl2kL9XehFBp2ni4eDbfvweSl DwHT0kMCTnaUsKGGQvZKg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2XaZG7z3urs=:CGDBCB3GERrUPkclTqeJ1M nnGlnDxsTOitBxR/Dx69a85QsXP5Puqm26T3ipszXq+KNKkxoOYc5qWHHaMsqA3OLAvxN1P3n tgwrhInBK+4ne5Bnb9GqXnedUo/jZlHXYWUxuHZObZ4DBU/RGWxP5Tz50Eo860NCVwV5H0ZqC k7YvVUhUTbsIY/Imon/SL0zmTka7FT6ratkH9uxHbY4WXnMwtvljqZGlBauQVpvKt/HT56jNz TR1ZdaIXlCg0BSKYC5J0LcI0rKeiYodRJMxKDuBajsEp0Wc6yyHFdHzdiD/9xO8OSqWC4apZI ykklq8qLT7drILx1sVYjRCWdfMx7ph7WVee4ob856dJgY6LzUCY8ue3WG1lKMlBh0UBskflAQ +RtPXR+QD9M+ndEm67gxXvlKhPvOtjeN24xPUkiMP60iHssRI/fzHtZp7agN7cjrfBAnvJWIg iCvz6QnK3ttiRIW98MtjpIR7NvJC4Xxhht94sqceNJpMII6ZGs249J/d+s4xYRIvhqV5Mmvsj hEAv2v42xNFWL4j1zDL1q0tWMxhtP8nZXCvQ1FpY9ViW83ao4g8uayimWVtUyl2Rn9s3X/8eu LrGhcS8+P0QkAPwL13eA7dB72YuToYTp+rl9vRH7rocSijcPaUtaWNepAC5S+b2xnk3+M4x98 lyuKjTTX6UYs8Gbtx7C2uZSgZVYhQsG8DA39N8tyKNEBHivAdeL4r98U06AGpnBo1kOpqFg4r 7DiLtUJiJDqO4T87BAfuu9ErPK62QS/99lIiaw07ogkAwJKEhPXbXB1NMjTZAeo87hcHCeJVh rll4F+bejAc4PPHj0wFvs6rfgR9RC5Hg6xk7hJPWON5pIjVyEO9uKKDrzhNcovC/0ygdMyJHG jAHJYmAh2hnaxnyY+NmT1AtdOlQBTzqOsZWD94HuRvKtGTwstsTlH28AA9xEP+Eu9GmmNVdC6 P3Esj3LwcB0CaaxNusU5mc2Xv59KHWSkNiXBvMAXi5VLoawaboEqhsR//7Y93GS1CSPNb3aWg gtnt9OUWasqdHDDyD1iA6taD4+hVaWMu/NgexH0fkA3NgbR8SQX4O6OGvopDCkmwaoTnNPVl5 yQxVxBLt6H8AQI= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe schrieb am 24.01.2022 um 09:28: > On Sat, 2022-01-22 at 09:08 -0800, Wells Oliver wrote: >> I need only drop the column and VACUUM FULL the table, and not the enti= re DB, right? > > Not that VACUUM (FULL) will *not* physically get rid of a dropped column= , > as it just copies the complete rows to a new table. I always wondered why that is the case. If the table is rewritten entirely, wouldn't that also be an option to really get rid of dropped columns? Is there a technical reason, or just a case of "no one cared enough to cha= nge it"? Regards Thomas