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 1kFcZK-0001N4-NQ for pgsql-general@arkaria.postgresql.org; Tue, 08 Sep 2020 12:17:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFcZJ-0001Tv-Hq for pgsql-general@arkaria.postgresql.org; Tue, 08 Sep 2020 12:17:49 +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 1kFcZI-0001Tk-Vw for pgsql-general@lists.postgresql.org; Tue, 08 Sep 2020 12:17:49 +0000 Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFcZF-0006j1-KL for pgsql-general@postgresql.org; Tue, 08 Sep 2020 12:17:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1599567462; bh=2WMHAyVcRDz9pAVTOaKjhrAQ9uHVxjFhf1kkxSyJaxA=; h=Date:Subject:From:To:References:In-Reply-To:From:Subject; b=WMNg7UiNED3B+2cdXtm0mLFyEE2Yqksi73Hdnyntm+xm7PRHtnsm3NkUEUWceZQcsGyjpi4smX8UbE0/w9g3SLBq+dx895y/O4dyLRUrHO6wMLWvhYFJ0WincTbeem9O4AMmQVyZmVjD1F1kDpA3EmKUYGYJzufqe1xF5GYmgXx8497LVYp5yqdIedujs2vEJwRfNPIOkm4W8l/Ma0e0/HFAHP574mmJkujYA+pT4q3/nVl728QbWWYp9ydgd1ehJ0JPiFxiwwTr7rzTfBoAa22XkO1hv3Jy6YvnQ2t5S/U+MOUtP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x.IJjSoU3gpCznxmKSG2sn00TT.WJJ3T0OefHtX_AADDR wKY_mLbxKHH2NHtFkhVE5hvpFMJW0Y52zv4vEvQk6b0DsSUSRST39bWXVe3IUIbJuwK5McRe2D_8 ITJE0zlrHekmXSxVBdI7dMCz9DfwtMETpEctH718XY1OA.pPdNTn7F.7mP8AvUP30kwHKPqi1eaD 4sWoo1FpccmBSSj_u2O5YPeoDcui7fl3eGIxjFB7sJQCJswFGzDhYsyKCuLf26hkwJ1jAimQzaem f_s4oBIJC85ESgF8giFYBsGYwp8E6EhJo0oEwxisxAIntDkroyXiYx59x8e_VNY145UJd7oWtPdE JqiN_oRxtaCQnzjxxoc1MG7DZLLkJnDVVkDrUReRbFIU2PvLZ2mcrWlZ7lhOHDN1thxrn53wIoDa Z5NmvkwCVm4WGGARAzD2Fmv6r9dDDRXPpKTZZob7a0r6PL4fHIznpgKzGgEazyXnuoewVRxhBgsf 2Yy0vlqMWiO4LDSIwqk4HSFnnTTlhWh1i Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 8 Sep 2020 12:17:42 +0000 Received: by smtp404.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e437c0aae739e8caa7c4037d0068e70e; Tue, 08 Sep 2020 12:17:39 +0000 (UTC) User-Agent: Microsoft-MacOutlook/16.40.20081000 Date: Tue, 08 Sep 2020 08:17:36 -0400 Subject: Re: Autovacuum of independent tables From: Ravi Krishna To: Michael Holzman , "pgsql-general@postgresql.org >> PG-General Mailing List" Message-ID: Thread-Topic: Autovacuum of independent tables References: <20200908082755.GI19261@paquier.xyz> In-Reply-To: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3682397859_2123820499" X-Mailer: WebService/1.1.16565 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 4793 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3682397859_2123820499 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable >>Interesting. Are you telling the Oracle version of the code had no=20 >>intermittent COMMIT and relied on one final COMMIT at the end. Even=20 >>in Oracle developers must have planned for commit since a long running=20 >>open transaction can lead to =E2=80=9Csnapshot too old=E2=80=9D error. >Yes, I am saying just that. With one important clarification: there were=20 >no transactions as SELECT does not open them and the application does not=20 >change anything on that connection. So, no 'snapshot too old' and no COMMI= Ts.=20 =20 It's been a while since I worked with Oracle as a developer.=C2=A0 But my under= standing is that even a read-only transaction, like the one you described above, req= uires a point in time consistent image of the database. This would imply that if = your transaction runs for a long time and meanwhile other DML sessions change lo= t of blocks, resulting in undo tablespace getting totally turned over, then Oracle can n= o longer=20 gurantee PIT consistent view of the database to your session and barf out w= ith=20 snapshot-too-old error. =20 I have no way of confirming this and I am writing this based on my limited = experience with oracle.=C2=A0 So I may be wrong. =20 --B_3682397859_2123820499 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable

>>Interesting. Are you telling = the Oracle version of the code had no

>= >intermittent COMMIT and relied on one final COMMIT at the end. Even

>>in Oracle developers must have planned= for commit since a long running

>>o= pen transaction can lead to =E2=80=9Csnapshot too old=E2=80=9D error.

>Yes, I am saying just that. With one important clarificat= ion: there were

>no transactions as SEL= ECT does not open them and the application does not

>change anything on that connection. So, no 'snapshot too old' = and no COMMITs.

 

It's been a while since I worked with Oracle as a developer.=C2=A0= But my understanding

is that even a read-o= nly transaction, like the one you described above, requires

a point in time consistent image of the database. This woul= d imply that if your

transaction runs for a= long time and meanwhile other DML sessions change lot of blocks,=

resulting in undo tablespace getting totally turned o= ver, then Oracle can no longer

gurantee PI= T consistent view of the database to your session and barf out with

snapshot-too-old error.

 

I have no way of confirming t= his and I am writing this based on my limited experience

with oracle.=C2=A0 So I may be wrong.

<= p class=3DMsoNormal style=3D'margin-left:.5in'> 

=
--B_3682397859_2123820499--