Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1bf6-0000dU-Sd for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 18:53:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1bf5-0001yH-Au for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 18:53:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1bf4-0001uq-W6 for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 18:53:03 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1bf1-0001vw-TI for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 18:53:02 +0000 Received: by mail-qt1-x844.google.com with SMTP id v10so14067623qtp.8 for ; Wed, 06 Mar 2019 10:52:59 -0800 (PST) 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=BN8mFt4Wsdneknapm+OsmHgtZnFPqWKRVMo1mQLwRl0=; b=pA6TPGUbuJVnMbWOps+W1pgCfsHgrzJH9qBbpKtLgbjhnvhMlMBuPakkEpuzWmewng MTaqoeOEwGvGfw5WPgHRNGtRY8bN91JRI+V7B037CDkq56DFnZlOa+dlgH1C/8W0s+TC K6FfEK45WH7SWuNAmtk49afXn3TfEHrKu+ZOYikLIPEQfEth5Joa3ORFCds7lb5D2Jgv pmCiv2FYfbXqn5m0oDQ+3FCaEBIQDm08kT6aIiqTKCbdQsykKDuOR1mLeoUe/tLLfl4y DC0O7cvA23ra7cOr18jNo870SLBhmEeubRXLJlN90Jl5+ZKryxBOHj11aoGi6Do2BA5g i4tQ== 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=BN8mFt4Wsdneknapm+OsmHgtZnFPqWKRVMo1mQLwRl0=; b=WKUBJ1sOsJlCVFjdsL8ENAqwNbrNJw5SnDZt1INCRahsJHYJfuesH8PqN/Mc8c7yx8 TLhtlolf4BKqizsoQ1rmPGE5/3ghQd9PfgDev/sffZWvot7cz1BrtmhxvOSn/PxOdnbY ZlroLJ1b95Oj1Z47iDcekOty88xYnFHy1qlqsqonlvEaM6MnZf/d1AUUxRdx9zZjNS6a 42Nx30Qd7jCDPk7GYVdRb4RcG1hAyVp11zLAkVLrCqgBV5ggZjKMsonZUnXZKpX70SuZ h8v8pm6I7fLeZ3PZYhl9eBoJGQ/ByQWVQLOOvDKpcDjdK3B2HvhLe6iCgf60Xj9Dazow oHbQ== X-Gm-Message-State: APjAAAXaQUR5wA6Jehuaw92RWSgHVuYe29vbS1TrZJI19s64zMB0RBFj p8dgalNBMN17Gytn0ZO89yip4g== X-Google-Smtp-Source: APXvYqxApSZy/+yKZtRlqcjjh9jLyvTCv9WIo0W41+99rJvwGgtVIGtuLRr1cptM8lHqwijCrpy1zA== X-Received: by 2002:a0c:d947:: with SMTP id t7mr7607049qvj.49.1551898378157; Wed, 06 Mar 2019 10:52:58 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id v26sm1391542qtk.22.2019.03.06.10.52.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2019 10:52:52 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 9F77C1238D2; Wed, 6 Mar 2019 15:52:50 -0300 (-03) Date: Wed, 6 Mar 2019 15:52:50 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: "Ideriha, Takeshi" , Postgres hackers Subject: Re: performance issue in remove_from_unowned_list() Message-ID: <20190306185250.GA18515@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91454a24-f8dc-f806-f499-79580a4f5bb8@2ndquadrant.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-08, Tomas Vondra wrote: > I'm wondering if we should just get rid of all such optimizations, and > make the unowned list doubly-linked (WIP patch attached, needs fixing > the comments etc.). +1 for that approach. Did you consider using a dlist? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services