Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Large databases, performance

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Manfred Koizar" <mkoi-pg(at)aon(dot)at>,<shridhar_daithankar(at)persistent(dot)co(dot)in>
Cc: <pgsql-hackers(at)postgresql(dot)org>,"pgsql-general" <pgsql-general(at)postgresql(dot)org>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: [HACKERS] Large databases, performance
Date: 2002-10-07 15:42:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackerspgsql-performance
> if i'm not mistaken, a char(n)/varchar(n) column is stored as a 32-bit
> integer specifying the length followed by as many characters as the
> length tells.  On 32-bit Intel hardware this structure is aligned on a
> 4-byte boundary.


> | opc0     char (3)   no    no       8     4
> | opc1     char (3)   no    no       8     4
> | opc2     char (3)   no    no       8     4

> Hackers, do you think it's possible to hack together a quick and dirty
> patch, so that string length is represented by one byte?  IOW can a
> database be built that doesn't contain any char/varchar/text value
> longer than 255 characters in the catalog?

Since he is only using fixchar how about doing a fixchar implemetation, that 
does not store length at all ? It is the same for every row anyways !



pgsql-performance by date

Next:From: Marie G. TuiteDate: 2002-10-07 19:22:09
Subject: sloooow query
Previous:From: Manfred KoizarDate: 2002-10-07 15:22:41
Subject: Re: Large databases, performance

pgsql-hackers by date

Next:From: Neil ConwayDate: 2002-10-07 16:18:46
Subject: Re: Moving to PostGres
Previous:From: Antti HaapalaDate: 2002-10-07 15:38:47
Subject: Re: Proposed LogWriter Scheme, WAS: Potential Large

pgsql-general by date

Next:From: Jean-Luc LachanceDate: 2002-10-07 16:11:35
Subject: Re: Efficient date range search?
Previous:From: Martijn van OosterhoutDate: 2002-10-07 15:31:51
Subject: Re: why isn't index used?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group