Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfDYW-0000Fb-91 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2016 22:00:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfDYV-0000l6-S6 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2016 22:00:23 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfDYU-0000kR-Kj for pgsql-hackers@postgresql.org; Wed, 31 Aug 2016 22:00:22 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bfDYR-0007Ss-I7 for pgsql-hackers@postgresql.org; Wed, 31 Aug 2016 22:00:22 +0000 Received: by mail-wm0-x22d.google.com with SMTP id 1so64033163wmz.1 for ; Wed, 31 Aug 2016 15:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=CmuQm5FpEOz3IhLarrM8YQi7CTSLc344Rw4m51/KzTk=; b=Xq5G6kleeqJV/p9skVMhdM3N+bKTrhxKH5PpM19Rn1oMqMOKwL64o8VEtHAk693jy0 qqCNDKFACNMdr3x8om/GPMU7Hm+q3Ar/meSu8H5NYWszROfGGNQholi92p/lDRAG9jcq b6kDnAljjtqtb6ao+k7m3mgKnDFxrGbGV6ADBSZdRUhKtAym8nsqQH+CipiOg8EvGAB5 AQF6XGU4gO2wUbJAQ4lLRXmm/joP8tPJh8qinrAUNQO5AqJ30M4WJn57bvljLkHgX6oB VJcV6vizTdIEqWUtOZwch32PGhr3j8+fDEeZuxSW82OUS+ONFDfP2+hwuybuWqdZSJ0W m4qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=CmuQm5FpEOz3IhLarrM8YQi7CTSLc344Rw4m51/KzTk=; b=QBD1n3JUkeLb9GG19djx4BT4lxKZsnc8j2SKPWP8xHIpEVU7W+UEImtClGsAdtW4hu /1bYnbFp9eWeErSeLXcgsjitizB6T0XVfzyhNwhNVX9P0O7Ohg6TfDCm7DlWH8IZuV+f 8V/+Ebv9URsp0aaVyTQP47s68NBHDNsw7bPNCi970qATPjYf1h9qyEedDx3MBx7CwVWD s+VNW327qG0HXsDHcNo0wHsc+5X4YuKFxuwVPUws1M9Az/5BFc0As/NpT7Z1WeNmlnxm 2csTi4/wFmR8kiVEiccDvLoVZGXJTs8lDGU7kUKxLoHSvRwtBTAburB3Xit45UuqBKTh 57qQ== X-Gm-Message-State: AE9vXwPPYrZaSJXGoC/3DGzUI0DK3dXjwYpwoFQ9I6CspqgFAARahbdLbLeF3qI7Er/WG0Aal3x1SMMCugP8BZL2CMeTCX501zYI6qKxsfXtfslLkRlDVFov1CsFifObof5ffMWFgKY8GrLjEIxkwHMMbScEMFihVqHwPIRHDJXY8Dlzm/EhqIVLtghm4p+IV39tvbte7uxw X-Received: by 10.28.69.143 with SMTP id l15mr2772173wmi.64.1472680818105; Wed, 31 Aug 2016 15:00:18 -0700 (PDT) Received: from [10.137.2.20] (92-111-18-74.static.chello.nl. [92.111.18.74]) by smtp.gmail.com with ESMTPSA id pf5sm1817895wjb.42.2016.08.31.15.00.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Aug 2016 15:00:17 -0700 (PDT) Subject: Re: [Patch] Temporary tables that do not bloat pg_catalog (a.k.a fast temp tables) To: Andres Freund References: <20319.1471223097@sss.pgh.pa.us> <20160815010852.5ijua2wm2edzimd4@alap3.anarazel.de> <20160815121216.46bd758d@e733> <95bdc353-1a89-3fe3-1181-eba558c4df83@BlueTreble.com> <2bb00def-22bf-40a1-7dfb-6e72b99a351a@2ndquadrant.com> <20160831214300.stlmapnudo7ifccj@alap3.anarazel.de> Cc: Vik Fearing , Robert Haas , Jim Nasby , Aleksander Alekseev , PostgreSQL Hackers From: Tomas Vondra Message-ID: Date: Thu, 1 Sep 2016 00:00:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Thunderbird/46.0a2 MIME-Version: 1.0 In-Reply-To: <20160831214300.stlmapnudo7ifccj@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 08/31/2016 11:43 PM, Andres Freund wrote: > On 2016-08-31 23:40:46 +0200, Tomas Vondra wrote: >> It's an improvement (and it's pretty much exactly what I proposed >> upthread). But it does not solve the problems with pg_statistic for >> example (each backend needs it's own statistics. So we'd either bloat >> the pg_statistic (if we manage to solve the problem that the table has >> the same oid in all backends), or we would need in-memory tuples (just >> like discussed in the thread so far). > > Creating a session private version of pg_statistic would be fairly > simple. Sure. I'm just saying it's not as simple as overriding relpath. ISTM we only need the pg_statistics (as other catalogs are connected to the pg_class entry), which does not have the dependency issues. Or do we need other catalogs? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers