Re: [PERFORM] Compression of text columns

2005-10-11 Thread Simon Riggs
On Mon, 2005-10-10 at 14:57 +0200, Stef wrote: > Is there any way to achieve better compression? You can use XML schema aware compression techniques, but PostgreSQL doesn't know about those. You have to do it yourself, or translate the XML into an infoset-preserving form that will still allow XPat

Re: [PERFORM] Compression of text columns

2005-10-10 Thread Tom Lane
Stef <[EMAIL PROTECTED]> writes: > I saw that the default storage type for text columns is > "EXTENDED" which, according to the documentation, uses up extra > space to make possible substring functioning faster. You misread it. EXTENDED does compression by default on long strings. EXTERNAL is th

Re: [PERFORM] Compression of text columns

2005-10-10 Thread Stef
Tino Wildenhain mentioned : => Well, text columns are automatically compressed via the toast mechanism. => This is handled transparently for you. OK, I misread the documentation, and I forgot to mention that I'm using postgres 7.3 and 8.0 It's actually the EXTERNAL storage type that is larger, not

Re: [PERFORM] Compression of text columns

2005-10-10 Thread Tino Wildenhain
Stef schrieb: I have a table in the databases I work with, that contains two text columns with XML data stored inside them. This table is by far the biggest table in the databases, and the text columns use up the most space. I saw that the default storage type for text columns is "EXTENDED"

[PERFORM] Compression of text columns

2005-10-10 Thread Stef
I have a table in the databases I work with, that contains two text columns with XML data stored inside them. This table is by far the biggest table in the databases, and the text columns use up the most space. I saw that the default storage type for text columns is "EXTENDED" which, according t