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 1kFbEj-00065G-8E for pgsql-general@arkaria.postgresql.org; Tue, 08 Sep 2020 10:52:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFbEi-0006Je-6t for pgsql-general@arkaria.postgresql.org; Tue, 08 Sep 2020 10:52:28 +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 1kFbEh-0006JR-Cs for pgsql-general@lists.postgresql.org; Tue, 08 Sep 2020 10:52:27 +0000 Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFbEX-00062P-UZ for pgsql-general@postgresql.org; Tue, 08 Sep 2020 10:52:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1599562334; bh=RkPvoqAn/PN9A9BwMUzsQ+grJBLxIkQcVU30m4k3OxI=; h=Date:Subject:From:To:References:In-Reply-To:From:Subject; b=HxfR5SRWY5v8wgNq3hYZ3uYb49uTn1M6Ziu8MK7cjacxFAuU1ZyPRKj5mSmPEjS9iOhujyVaYxajkMAbyAVeeqVeM86LBsb/CShvW36raHk9fg8bK4PQvsvuThqaYO4XfN+TLcu7oqtKyyy+wQl9nKBgbUjWMaVQM7lx8ofCuOwZMlyW5wOxt/cmSmjPdjsrSHmyl39cIsZY1I/NuO+HSvz7iHugnOYTjxj1T5mfTncHa47N3W0jQtpA2WG/+qE0g0NUt+SgitKjn6tbSYj4RYvTZ4kVDxKNTRJfx0twHDZ2K81f+C0TAS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eAqOjmhjGXZV0Tkh0hpk LbFalLnhQsTaLpz8jcDUbPiWyHtfY3XT4wQmPVM7wUBnycDWacbKqUyjQU95dMggwQ12xUo51TsA GBC_t8D4wfrQMkk3iQm_ZJ9Lt1p0OInyW_8_1H6POsY9REg.cAArR6Z6JgK_IuhisSY1MIfJB9e1 KGe7FaeeOKHf0Cypu3Esz8HaXNwb3jbu7Iyot3Py2i_0IZHQ0WzRsfd8qvRGZYY3Vt8v8iMlio3j Gybx6QkDmnBJEDlcu4A51bfCpy0QiDs77.ZtMcRXL.VCrZC3ue7PeYnedm728sHwppHqnQCfM8UY 5lj1NXt3BhP4GbA.IECeVF1HyxW87MxNVpT0lrWuvyGarFiXrzPUju7..KCb2NPwUnQP16GDmLEe ggUWXy8iNRmF1uvUhQBwTAq4H8j3EKcLon3rs2nFM4pfd7l4Lss59AmvxVpsYtFG2JfdzRRY1uOt o2Hh6QyU1BaHilO2P8pcY5RzL.jAc49Y3gIW9w9OnGWLw9s9Wml8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Tue, 8 Sep 2020 10:52:14 +0000 Received: by smtp421.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7f08c59411876fb5d5219f926caae6de; Tue, 08 Sep 2020 10:52:13 +0000 (UTC) User-Agent: Microsoft-MacOutlook/16.40.20081000 Date: Tue, 08 Sep 2020 06:52:10 -0400 Subject: Re: Autovacuum of independent tables From: Ravi Krishna To: "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_3682392733_1681882050" 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: 3093 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_3682392733_1681882050 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable This is the problem. A and B were developed for Oracle where SELECT does no= t open a transaction. We moved them to PG=20 and now we have to very accurately add COMMITs without breaking the flow. I= t is quite a complex thing. I hoped we can=20 avoid that. =20 Interesting. Are you telling the Oracle version of the code had no intermit= tent COMMIT and relied on one final COMMIT at the end. Even in Oracle developers must have planned for co= mmit since a long running=20 open transaction can lead to =E2=80=9Csnapshot too old=E2=80=9D error. --B_3682392733_1681882050 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable

This is the problem. A and B were developed for O= racle where SELECT does not open a transaction. We moved them to PG
and = now we have to very accurately add COMMITs without breaking the flow. It is = quite a complex thing. I hoped we can
avoid that.

 

Interesting. Are you telling the Oracle version o= f the code had no intermittent COMMIT and relied on one
final COMMIT at t= he end. Even in Oracle developers must have planned for commit since a long = running
open transaction can lead to =E2=80=9Csnapshot too old=E2=80=9D error.<= /o:p>

--B_3682392733_1681882050--