pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Unify drop-by-OID functions
Date: Sat, 2 May 2020 10:01:54 +0200
Message-ID: <6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.com> (raw)
In-Reply-To: <CAEudQAq83jujNZCYL_EUP1OBYhVr9d8kc2bJrfZwejekbrH7+A@mail.gmail.com>
References: <331d9661-1743-857f-1cbb-d5728bcd62cb@2ndquadrant.com>
	<CAEudQAq83jujNZCYL_EUP1OBYhVr9d8kc2bJrfZwejekbrH7+A@mail.gmail.com>

On 2020-05-01 23:31, Ranier Vilela wrote:
> I can suggest improvements?
> 
> 1. In case Object is cached, delay open_table until the last moment, for 
> the row to be blocked as little as possible and close the table as 
> quickly as possible.
> 2. In case Object is cached and the tuple is invalid, do not open table.
> 3. Otherwise, is it possible to call systable_endscan, after table_close?

What do you mean by "object is cached"?

In any case, this is a refactoring patch, so significant changes to the 
internal logic would not really be in scope.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (18+ messages)  latest in thread

Message-ID: <6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.com>
Permalink:  ../6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.com/
Also on:    postgresql.org/message-id/6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, ranier.vf@gmail.com
  Subject: Re: Unify drop-by-OID functions
  In-Reply-To: <6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.com>
  References: <331d9661-1743-857f-1cbb-d5728bcd62cb@2ndquadrant.com> <CAEudQAq83jujNZCYL_EUP1OBYhVr9d8kc2bJrfZwejekbrH7+A@mail.gmail.com> <6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.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