pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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 10:53:48 -0500
Message-ID: <19759.1353686028@sss.pgh.pa.us> (raw)
In-Reply-To: <50AF574C.5040809@timbira.com>
References: <18330.1353283998@sss.pgh.pa.us>
	<7c1ee6d7b0d3821da2f2d19b8f526649@biglumber.com>
	<CAFj8pRAw1nnokF=jhD6C5=wzGNA_maCn1dVENCaTpj=1i1ZFbw@mail.gmail.com>
	<50AF574C.5040809@timbira.com>

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, but that would be rather catastrophic because of the
code's habit of overlaying C structures onto catalog rows.

			regards, tom lane




view thread (23+ messages)  latest in thread

Message-ID: <19759.1353686028@sss.pgh.pa.us>
Permalink:  ../19759.1353686028@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19759.1353686028@sss.pgh.pa.us

 · 

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: 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: <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>

* 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