pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Dann Corbit <DCorbit@connx.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Steve Crawford <scrawford@pinpointresearch.com>
Cc: pgsql-performance@postgreSQL.org
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Terrible performance on wide selects
Date: 23 Jan 2003 19:42:26 +0200
Message-ID: <1043343746.1368.6.camel@localhost.localdomain> (raw)
In-Reply-To: <D90A5A6C612A39408103E6ECDD77B8294CD864@voyager.corporate.connx.com>
References: <D90A5A6C612A39408103E6ECDD77B8294CD864@voyager.corporate.connx.com>

Dann Corbit kirjutas N, 23.01.2003 kell 02:22:
> [snip]
> > So (for instance) if you have 12 variable fields, you would 
> > store 12 integers at the start of the record.
> 
> Additionally, you could implicitly size the integers from the properties
> of the column.  A varchar(255) would only need an unsigned char to store
> the offset, but a varchar(80000) would require an unsigned int.

I guess that the pointer could always be 16-bit, as the offset inside a
tuple will never be more (other issues constrain max page size to 32K)

varchar(80000) will use TOAST (another file) anyway, but this will be
hidden inside the field storage in the page)

> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
-- 
Hannu Krosing <hannu@tm.ee>



view thread (22+ messages)  latest in thread

Message-ID: <1043343746.1368.6.camel@localhost.localdomain>
Permalink:  ../1043343746.1368.6.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1043343746.1368.6.camel@localhost.localdomain

 · 

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-performance@postgresql.org
  Cc: hannu@tm.ee, DCorbit@connx.com, tgl@sss.pgh.pa.us, scrawford@pinpointresearch.com, pgsql-hackers@postgreSQL.org
  Subject: Re: Terrible performance on wide selects
  In-Reply-To: <1043343746.1368.6.camel@localhost.localdomain>
  References: <D90A5A6C612A39408103E6ECDD77B8294CD864@voyager.corporate.connx.com> <1043343746.1368.6.camel@localhost.localdomain>

* 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