pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Unify drop-by-OID functions
Date: Tue, 5 May 2020 17:10:57 -0400
Message-ID: <20200505211057.GA26016@alvherre.pgsql> (raw)
In-Reply-To: <CAEudQAoNVXCqJ8bXCDJVqnAqRZoDFQjNqK+_csR7naO8357=uQ@mail.gmail.com>

On 2020-May-05, Ranier Vilela wrote:

> And in that specific case, leaving resources blocked, which perhaps, in my
> humble opinion, could be released quickly.

I very much doubt that you can measure any difference at all between
these two codings of the function.

I agree with the principle you mention, of not holding resources for
long if they can be released earlier; but in this case the table_close
call occurs across a ReleaseSysCache() call, which is hardly of
significance.  It's not like you have to wait for some other
transaction, or wait for I/O, or anything like that that would make it
measurable.  

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (18+ messages)  latest in thread

Message-ID: <20200505211057.GA26016@alvherre.pgsql>
Permalink:  ../20200505211057.GA26016@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200505211057.GA26016@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, ranier.vf@gmail.com, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: Unify drop-by-OID functions
  In-Reply-To: <20200505211057.GA26016@alvherre.pgsql>
  References: <CAEudQAoNVXCqJ8bXCDJVqnAqRZoDFQjNqK+_csR7naO8357=uQ@mail.gmail.com> <20200505211057.GA26016@alvherre.pgsql>

* 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