Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YlKG5-0002L5-CO for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2015 16:45:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YlKG4-0006bn-QN for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2015 16:45:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YlKG3-0006ba-Kl for pgsql-hackers@postgresql.org; Thu, 23 Apr 2015 16:45:47 +0000 Received: from mail-wg0-f42.google.com ([74.125.82.42]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YlKG0-0008Up-9j for pgsql-hackers@postgresql.org; Thu, 23 Apr 2015 16:45:46 +0000 Received: by wgyo15 with SMTP id o15so24648538wgy.2 for ; Thu, 23 Apr 2015 09:45:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xFOHGdWM127xj/Du3Ey6Lq+lZ/Pqc2lz/RWKguLd6Uk=; b=VYoe62DIyEIcaubk93AO0/0gOApmHXlH8Ik7kjUXFyTTWvevVqXYAiNEQDh1nY6XxI qWi3cZ6ZwU9NFcRmMeX6sDjLHIny8ECLDJ+y8VGCJarxwKsNTUM9xEOpRgipYG5WXOHc VgZL94wfqdBSo2VeivbTiKk/H5IhCnsSvBHC0ZcWf8ibk7igRmX5xJ3Y3hfG7ilAdXHM LpoVkHAHTKsw7dKteoFqIsa3gZk6C91b/hT+Se+TAKChq7lNaTV9UXQQm9wVZm/yVmgz irYLCNu4D0ltEJQmw/96KKlv41sUiXtfXLv5352JuYvh68kjZ4cLlZH4XD3tb6k/ypWp Z7nQ== X-Gm-Message-State: ALoCoQmnnk/4tVitDvzf1wr7efZba0yaMN30UC5ugUBCXLEgChdRJLfgc5MX+B9CV95IegVsKh4f X-Received: by 10.180.90.210 with SMTP id by18mr7700982wib.0.1429807541406; Thu, 23 Apr 2015 09:45:41 -0700 (PDT) Received: from [10.1.0.100] (190.84.broadband17.iol.cz. [109.80.84.190]) by mx.google.com with ESMTPSA id fo7sm13348536wic.1.2015.04.23.09.45.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 09:45:40 -0700 (PDT) Message-ID: <553921B1.7080204@2ndquadrant.com> Date: Thu, 23 Apr 2015 18:45:37 +0200 From: Petr Jelinek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Andres Freund , hlinnaka@iki.fi, Jim Nasby , Robert Haas CC: Bruce Momjian , Sawada Masahiko , Greg Stark , PostgreSQL-development , Jeff Janes Subject: Re: Reducing tuple overhead References: <20150423162429.GG3055@alap3.anarazel.de> In-Reply-To: <20150423162429.GG3055@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252; format=flowed 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 23/04/15 18:24, Andres Freund wrote: > Whether that's feasible complexity wise is debatable, but it's certainly > possible. > > > I do wonder what, in realistic cases, is actually the bigger contributor > to the overhead. The tuple header or the padding we liberally add in > many cases... > The logical ordering patch + auto optimizations of column layout on table creation/rewrite might help partially there. But what seems to be clear is that we need more in depth analysis of what really contributes most to the tuple size in various use-cases and then we can debate what we can do about it. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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