pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna@yahoo.com>
To: Michael Holzman <michaelholzman@gmail.com>
To: " <pgsql-general@postgresql.org>
Subject: Re: Autovacuum of independent tables
Date: Tue, 08 Sep 2020 08:17:36 -0400
Message-ID: <AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com> (raw)
In-Reply-To: <CAPNViJpzAQ9ZCsgTW190A7Mvh=dd1dYF403OAV6+3C2PDbaeqA@mail.gmail.com>
References: <CAPNViJrQFge6EW_dvwaLB8pjRq4K51vnvcYBPNb8SuTW88MrBw@mail.gmail.com>
	<CAFj8pRD1=CUAhixyP5CGGsc=GOHFWX3oM22WFU6KnH1CAqN2YQ@mail.gmail.com>
	<CAPNViJrFNA8xiEgFeDoZ1GVKndx-MQXsES0Lg2hzrkNohzfJSA@mail.gmail.com>
	<20200908082755.GI19261@paquier.xyz>
	<CAPNViJo0eRP10-e0VRVgzh2xPobay5FpY2z5OOSLS_-jtasVRg@mail.gmail.com>
	<CAFj8pRCH_P5YJZaLad1kTw-boGd=PGhY73BR=awLqpGtw3=0zg@mail.gmail.com>
	<CAPNViJoV+Bpgja8vEES2dnes-aHSbm_vxQZcmWOi+ZbrK2JhqA@mail.gmail.com>
	<D0B59B50-5225-4FB4-B877-FF3669DF1CC5@yahoo.com>
	<CAPNViJpzAQ9ZCsgTW190A7Mvh=dd1dYF403OAV6+3C2PDbaeqA@mail.gmail.com>

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

 

view thread (24+ messages)  latest in thread

Message-ID: <AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com>
Permalink:  ../AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com/
Also on:    postgresql.org/message-id/AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: srkrishna@yahoo.com, michaelholzman@gmail.com
  Subject: Re: Autovacuum of independent tables
  In-Reply-To: <AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com>
  References: <CAPNViJrQFge6EW_dvwaLB8pjRq4K51vnvcYBPNb8SuTW88MrBw@mail.gmail.com> <CAFj8pRD1=CUAhixyP5CGGsc=GOHFWX3oM22WFU6KnH1CAqN2YQ@mail.gmail.com> <CAPNViJrFNA8xiEgFeDoZ1GVKndx-MQXsES0Lg2hzrkNohzfJSA@mail.gmail.com> <20200908082755.GI19261@paquier.xyz> <CAPNViJo0eRP10-e0VRVgzh2xPobay5FpY2z5OOSLS_-jtasVRg@mail.gmail.com> <CAFj8pRCH_P5YJZaLad1kTw-boGd=PGhY73BR=awLqpGtw3=0zg@mail.gmail.com> <CAPNViJoV+Bpgja8vEES2dnes-aHSbm_vxQZcmWOi+ZbrK2JhqA@mail.gmail.com> <D0B59B50-5225-4FB4-B877-FF3669DF1CC5@yahoo.com> <CAPNViJpzAQ9ZCsgTW190A7Mvh=dd1dYF403OAV6+3C2PDbaeqA@mail.gmail.com> <AEBA4EFC-8705-41CD-AE77-6CBB03D271B0@yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox