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 1lqHXt-0005rM-Sa for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:52:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHXs-0001xJ-Rq for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:52:08 +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 1lqHXs-0001xB-IT for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:52:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHXo-0001UE-22 for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:52:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 157Fq10C879769; Mon, 7 Jun 2021 11:52:02 -0400 From: Tom Lane To: "Zwettler Markus (OIZ)" cc: "pgsql-general@lists.postgresql.org" Subject: Re: AW: AW: [Extern] Re: autovacuum on pg_catalog tables In-reply-to: References: Comments: In-reply-to "Zwettler Markus (OIZ)" message dated "Mon, 07 Jun 2021 10:07:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <879767.1623081121.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Jun 2021 11:52:01 -0400 Message-ID: <879768.1623081121@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Zwettler Markus (OIZ)" writes: > I tried this on postgres 9.6: > postgresql.conf -> allow_system_table_mods=3Don + pg_ctl restart > # alter table pg_catalog.pg_shdepend set (autovacuum_vacuum_scale_factor= =3D 0, autovacuum_vacuum_threshold =3D 1000); > ERROR: shared tables cannot be toasted after initdb > Time: 0.618 ms > # alter table pg_catalog.pg_largeobject set (autovacuum_vacuum_scale_fac= tor =3D 0, autovacuum_vacuum_threshold =3D 1000); > ERROR: AccessExclusiveLock required to add toast table. > Time: 0.590 ms Interesting. FWIW, these examples do seem to work in v12 and up. Since we don't consider this a supported case, I doubt anyone would be interested in trying to back-port whatever rearrangement allowed it to work. regards, tom lane