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 1oTipP-0002c6-6U for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 11:57:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTipN-0001Vl-9k for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 11:57:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTipM-0001Vc-TF for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 11:57:44 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oTipJ-0007SY-Hx for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 11:57:44 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-11eb44f520dso26670778fac.10 for ; Thu, 01 Sep 2022 04:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=3Gz7gOSanMAj9p1Fs5CLkmwwqcvOBGhUCaPevOPXeA8=; b=GP6BpOk93MzgZEmKyqv2628vxL8PDceQRsaO4NkLUTx/0n41m3aw4+KRSUpV5riqBY iLvqcBwHB2kamGNiC1/NutY10284TkQQ1wzFF8fW5hOG3PI4kNVGrkdvzh15Kk1e+m7u CbxqtP1tVRpW2ctQK4YOHdsAX3uF40LmBV6xrOST8wPWgOntVrKG7LmCkn6P4S/1miHA VVobykAI7mLp97qPmJbtYUh3eqzBMZOxsBNhKKJygmexd8xGeX7DJjYkuVJtZBrWHXGO 8uRitT7IVcdrAJ2KFNzxpgVy19Y9c10+XrA7GXHmw92Ao9JwZZ57cvHuwMA01HRKkSup PM4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=3Gz7gOSanMAj9p1Fs5CLkmwwqcvOBGhUCaPevOPXeA8=; b=UqLQ2I4tZcwqUEQsUlkqvSeBH4ux1vTVkfy7FwTmdq3bd6Py9cdr3hSO+OLnWTSISN cqKNtQxJJjNJOHBWRDW69q0QxyWY/1UR+6+1ytAbK1ohlbFtmJ93h+RqPn77o+1AAyYG SST5n/X3i+pouTWQVXG+2dr644PT3iNmVEBqnuYfbWlPnX+7bV9N5Bq3Lr87jC/9UMNJ 0OE/nwhUO8TSFLD6Ra7v0vx5HfMfdr+ivEW79BIS9aEspsefYh46JVlhFUBAdIb8YVdk B8W7tIkkKjDAMyduhIKJ4dTgKEBjtI/NgPn2B1Ldlqjvknn0/5vZQ4Zs/HezOKq34oqq oP0Q== X-Gm-Message-State: ACgBeo3k8c+/hrWmidwI82xyuhQG4AUf2LcAHHBfm0gJb9uidXGop84t qcFQcPFEBMD6rrzU7WYRCIqe07x7gfU= X-Google-Smtp-Source: AA6agR7zP1CK7LpuQLtNHzb/RQwNoTbHsVzqZvccxbL+LWeXQiQ6sdFevJm3DEDVOJd7+9GYTE1dvg== X-Received: by 2002:a05:6870:708a:b0:11f:74d:2dec with SMTP id v10-20020a056870708a00b0011f074d2decmr3658526oae.132.1662033459239; Thu, 01 Sep 2022 04:57:39 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id z14-20020a056830128e00b006389650374dsm10245063otp.54.2022.09.01.04.57.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 04:57:38 -0700 (PDT) Message-ID: <96329d94-12bc-a168-6636-3f50859700d9@gmail.com> Date: Thu, 1 Sep 2022 06:57:38 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Vacuum Full is not returning space to OS Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/1/22 04:47, Sushant Postgres wrote: > Hi All, > > I am running Azure PostgreSQL database version 11 with replication enabled. Azure Postgresql is sufficiently different from Vanilla that the standard answer is "ask AWS". > But the autovacuum is not happening. Even Vacuum full is also not > reclaiming the space and returning back to OS. > > when, I disable to replication then only Full Vacuum is working as > expected but vacuum isn't working as expected. > > Database size is just 2 GB but bloat is around 14 GB in the database. What metric are you using to determine that 12GB is not freed up? -- Angular momentum makes the world go 'round.