pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Grzegorz Blinowski <g.blinowski@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: poor pefrormance with regexp searches on large tables
Date: Thu, 11 Aug 2011 08:56:14 -0500
Message-ID: <4E43992E020000250003FD9D@gw.wicourts.gov> (raw)
In-Reply-To: <CAF=aNMGUu7zJxw4doqcMhFdVmYkAh+0bBpL_+Fqjqa4wvJ-9Yg@mail.gmail.com>
References: <CAF=aNMHHzBKE8_P0LykDb8Bvk7eHKdytcZ9xAkz=gtpeTj87+w@mail.gmail.com>
	<4E425D2D020000250003FD32@gw.wicourts.gov>
	<CAF=aNMGRCcO+Cu3PSPL=m_OOSKOhZ+-O0uht=LQDes=7y=VfBw@mail.gmail.com>
	<4E4276E8020000250003FD52@gw.wicourts.gov>
	<CAF=aNMGUu7zJxw4doqcMhFdVmYkAh+0bBpL_+Fqjqa4wvJ-9Yg@mail.gmail.com>

Grzegorz Blinowski <g.blinowski@gmail.com> wrote:
 
> A small followup regarding the suggestion to turn off compression
> - I used:
> 
> ALTER TABLE archive_tender ALTER COLUMN subject SET STORAGE
> EXTERNAL
> 
> to turn off compression, however I get an impression that "nothing
> happend". When exactly this alteration takes effect? Perhaps I
> should reload the entire db from backup to change the storage
> method?
 
Yeah, the storage option just affects future storage of values; it
does not perform a conversion automatically.  There are various ways
you could cause the rows to be re-written so that they use the new
TOAST policy for the column.  One of the simplest would be to do a
data-only dump of the table, truncate the table, and restore the
data.  If that table is a big enough portion of the database, a
pg_dump of the whole database might be about as simple.
 
-Kevin



view thread (13+ messages)  latest in thread

Message-ID: <4E43992E020000250003FD9D@gw.wicourts.gov>
Permalink:  ../4E43992E020000250003FD9D@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4E43992E020000250003FD9D@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, g.blinowski@gmail.com
  Subject: Re: poor pefrormance with regexp searches on large tables
  In-Reply-To: <4E43992E020000250003FD9D@gw.wicourts.gov>
  References: <CAF=aNMHHzBKE8_P0LykDb8Bvk7eHKdytcZ9xAkz=gtpeTj87+w@mail.gmail.com> <4E425D2D020000250003FD32@gw.wicourts.gov> <CAF=aNMGRCcO+Cu3PSPL=m_OOSKOhZ+-O0uht=LQDes=7y=VfBw@mail.gmail.com> <4E4276E8020000250003FD52@gw.wicourts.gov> <CAF=aNMGUu7zJxw4doqcMhFdVmYkAh+0bBpL_+Fqjqa4wvJ-9Yg@mail.gmail.com> <4E43992E020000250003FD9D@gw.wicourts.gov>

* 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