pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Euler Taveira <euler@timbira.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Greg Sabino Mullane <greg@turnstep.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Prepared Statement Name Truncation
Date: Fri, 23 Nov 2012 18:10:18 +0200
Message-ID: <50AF9FEA.4090004@vmware.com> (raw)
In-Reply-To: <19759.1353686028@sss.pgh.pa.us>
References: <18330.1353283998@sss.pgh.pa.us>
	<7c1ee6d7b0d3821da2f2d19b8f526649@biglumber.com>
	<CAFj8pRAw1nnokF=jhD6C5=wzGNA_maCn1dVENCaTpj=1i1ZFbw@mail.gmail.com>
	<50AF574C.5040809@timbira.com>
	<19759.1353686028@sss.pgh.pa.us>

On 23.11.2012 17:53, Tom Lane wrote:
> Euler Taveira<euler@timbira.com>  writes:
>> On 22-11-2012 04:27, Pavel Stehule wrote:
>>>> significantly larger catalog
>
>> Less than 5% of catalog columns? I don't buy your argument.
>
> It's not about count, it's about size.  For instance, pg_attribute
> currently requires 140 bytes per row (counting the tuple header and
> line pointer), so adding 64 bytes would represent 45% bloat.  In
> a database with lots of tables that would be painful.
>
> We could avoid this problem if we were prepared to make type "name"
> be varlena,  ...

It would actually be nice to do that because it would *reduce* the 
amount of space and memory used for the catalogs in the typical case, 
where the attribute names are much smaller than 64 bytes. I received a 
complaint just the other day that our backend processes consume a lot of 
memory, even when idle; the catalog caches are a large part of that.

- Heikki




view thread (23+ messages)  latest in thread

Message-ID: <50AF9FEA.4090004@vmware.com>
Permalink:  ../50AF9FEA.4090004@vmware.com/
Also on:    postgresql.org/message-id/50AF9FEA.4090004@vmware.com

 · 

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-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, tgl@sss.pgh.pa.us, euler@timbira.com, pavel.stehule@gmail.com, greg@turnstep.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Prepared Statement Name Truncation
  In-Reply-To: <50AF9FEA.4090004@vmware.com>
  References: <18330.1353283998@sss.pgh.pa.us> <7c1ee6d7b0d3821da2f2d19b8f526649@biglumber.com> <CAFj8pRAw1nnokF=jhD6C5=wzGNA_maCn1dVENCaTpj=1i1ZFbw@mail.gmail.com> <50AF574C.5040809@timbira.com> <19759.1353686028@sss.pgh.pa.us> <50AF9FEA.4090004@vmware.com>

* 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