Re: Autovacuum of independent tables

From: Ravi Krishna <srkrishna(at)yahoo(dot)com>
To: Michael Holzman <michaelholzman(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Autovacuum of independent tables
Date: 2020-09-08 12:17:36
Message-ID: AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>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

>>open transaction can lead to “snapshot too old” error.

>Yes, I am saying just that. With one important clarification: there were

>no transactions as SELECT 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.  But my understanding

is that even a read-only transaction, like the one you described above, requires

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 lot of blocks,

resulting in undo tablespace getting totally turned over, then Oracle can no longer

gurantee PIT consistent view of the database to your session and barf out with

snapshot-too-old error.

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

with oracle.  So I may be wrong.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2020-09-08 12:19:54 Re: Autovacuum of independent tables
Previous Message Michael Holzman 2020-09-08 11:48:10 Re: Autovacuum of independent tables