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 1jW4qK-0003FT-PE for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2020 21:11:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jW4qI-0001Xe-Jj for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2020 21:11:06 +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 1jW4qI-0001XX-Cz for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2020 21:11:06 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jW4qD-0001h5-PJ for pgsql-hackers@postgresql.org; Tue, 05 May 2020 21:11:05 +0000 Received: by mail-qt1-x843.google.com with SMTP id k12so3339488qtm.4 for ; Tue, 05 May 2020 14:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ddAUt9Siam/znjru/5MDiZIMydWJiOdFNtqQP8N9DTY=; b=ZadYnbjgIOIKCbjy/JSAI2+Pq+mwFyB9umktpieUdU5rROfR533rF48qSUe7lCknhl eJsdTGtPHco/gCETx2v6ALNZ1AwAf6oZrltJYE9WD8tffDHrGxa8R3noJa/NWKASgufV 1gKz9hZNByR6cD+Ei9/Q4m3e4ZbJWR3pCdFg7PbBhNtZYZOQkQjv80VuNRrq5XGrzPK2 QPkgdiT1CwRixEa1fxPt+QRjxxmom2dcXUugP8UEe3j89vcWkHZlsHIxYc9nyxroq4pf nGLmLUP21kVF/379sWH205zkxcokgrKwUVoGUpDtHM3egneY0jzsAQC9fl7H2yX/5Ans +80w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ddAUt9Siam/znjru/5MDiZIMydWJiOdFNtqQP8N9DTY=; b=lwidcYn97sXWQti/GBqQuFf8nMU5ul9schQAGfwNtlJkkSeBdCpX3Jn1IVCmoQXDdb sYmuJtwhsR6VZqyTRtaeleuEHF4lyu1fQ9aPed7pmxKm4eVfSSZh5HN3ugIaB0hyRTbN 087ktI1odyKLk+scWvQjAYPHRY9Vwsg7jbuO90DlX0FAu09Xu7hleb5NWGISUb3t4kBs EGg0ymcHVaX0BCBbKHnp9ENthZZ6mraD6HGtq3sw5V21eWlsi5N8+Fao4nVJhThqoLVw hRzkei0OfLN3bcMIXH8CCxM+uJbYo3QIgzXqFRTHRsXM1RqRAXAa0Sr7zsi49xBU4Sqh eFQw== X-Gm-Message-State: AGi0PuYXA3odGO4q+P5MEVb1ZSEad7ZAPcUTrncNNIY0OV/MpV81FDwt SIjW5HANoOu+f3rnySsGxA0bFw== X-Google-Smtp-Source: APiQypIz+toRnQWazjFjM4Ib7RECVh5U27WQhsiycXTf3iuVab7SLRRsaYV464Tpzn7DbeuRZ9HhnQ== X-Received: by 2002:ac8:3244:: with SMTP id y4mr5108749qta.236.1588713060119; Tue, 05 May 2020 14:11:00 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id g11sm37914qkk.106.2020.05.05.14.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 14:10:59 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B7232301ED6; Tue, 5 May 2020 17:10:57 -0400 (-04) Date: Tue, 5 May 2020 17:10:57 -0400 From: Alvaro Herrera To: Ranier Vilela Cc: Robert Haas , Peter Eisentraut , pgsql-hackers Subject: Re: Unify drop-by-OID functions Message-ID: <20200505211057.GA26016@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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