Re: [GENERAL] space-effective varchar(255)-like arrangement

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: honza(at)ied(dot)com (Jan Vicherek)
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] space-effective varchar(255)-like arrangement
Date: 1998-12-26 20:38:08
Message-ID: 199812262038.PAA05184@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
>
> Hmm, let me guess ...
>
> one of the overhead elements for each row header is pointer to the next
> row, right ? That way the summing-up of varlena types is avoided, although
> the postgres engine still has to go from row header to row header to find
> Nth row in a page (block), right ?

Sort of. At the start of each row, there is control information. On of
the pieces of information stored is the length of the entire row. Using
that, you can quickly skip to the end of the row.

Because rows can't grow/shrink in place, and only vacuum removes
superseded rows, the next row is right after the end of the current row.

This is getting in to hackers territory. I have set the reply-to
accordingly.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Sneed 1998-12-26 21:26:28 6.4.1 problem
Previous Message Jan Vicherek 1998-12-26 19:42:46 Re: [GENERAL] space-effective varchar(255)-like arrangement