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

Re: Moving text columns, when it actually is large

From: Richard Huxton <dev(at)archonet(dot)com>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Moving text columns, when it actually is large
Date: 2009-07-09 08:09:05
Message-ID: 4A55A5A1.7000005@archonet.com (view raw or flat)
Thread:
Lists: pgsql-sql
Rob Sargent wrote:
> I have to restructure some tables, coalescing common elements from three 
> tables (sub-classes) into a single table (super-class).  Each source 
> table has a text field which actually gets stuffed with a largish (1Mb+) 
> blob of xml.
> 
> Is there any way to simply, um, er, transplant the pointer rather than 
> actually copy the data?

If they are large-objects (stored via the lo_xxx interface) yes. If not, 
no. I take it the large blob of xml is one of the fields that you are 
classifying as common?

-- 
   Richard Huxton
   Archonet Ltd

In response to

pgsql-sql by date

Next:From: jacobDate: 2009-07-09 17:53:14
Subject: Re: FW: Query length limitation in postgres server > 8.2.9
Previous:From: Tom LaneDate: 2009-07-09 01:58:51
Subject: Re: ERROR: function expression in FROM may not refer to other relations of same query level

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