pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: PFC <lists@peufeu.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Bad plan on a view
Date: Wed, 01 Mar 2006 10:16:08 -0500
Message-ID: <10652.1141226168@sss.pgh.pa.us> (raw)
In-Reply-To: <op.s5qo4bx8cigqcu@apollo13>
References: <op.s5qo4bx8cigqcu@apollo13>

PFC <lists@peufeu.com> writes:
> So, in order to speed up requests which need a full table scan, I wanted  
> to put the text fields in another table, and use a view to make it look  
> like nothing happened. Also, the small table used for searching is a lot  
> more likely to fit in RAM than the big table with all the text which is  
> only used for display.

Aren't you going to a lot of work to reinvent something that TOAST
already does for you?  (At least, in the cases where the text fields
are wide enough that it really matters.)

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <10652.1141226168@sss.pgh.pa.us>
Permalink:  ../10652.1141226168@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10652.1141226168@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lists@peufeu.com
  Subject: Re: Bad plan on a view
  In-Reply-To: <10652.1141226168@sss.pgh.pa.us>

* 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