Thread: how to view TOAST table

how to view TOAST table

From
Abhisekh Mohapatro
Date:
<div class="Section1"><p class="MsoNormal"> <p class="MsoNormal">Hi<p class="MsoNormal"> <p class="MsoNormal">I have a
tablewhich has a column with datatype BYTEA.<p class="MsoNormal">In order to trigger TOAST mechanism for the column, I
havemade the following alteration.<p class="MsoNormal"> <p class="MsoNormal">ALTER TABLE table_name ALTER COLUMN
column_nameSET STORAGE EXTERNAL<p class="MsoNormal"> <p class="MsoNormal">Please suggest me if I have to make any other
changes.<pclass="MsoNormal">Also I am unable to view the TOAST table.<p class="MsoNormal"> <p class="MsoNormal">Please
helpme out in viewing the table.<p class="MsoNormal"> <p class="MsoNormal">Thanks.</div><table><tr><td
bgcolor="#ffffff"><fontcolor="#000000"><pre>DISCLAIMER: 
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.


-----------------------------------------------------------------------------------------------------------------------</pre></font></td></tr></table>

Re: how to view TOAST table

From
Guillaume Lelarge
Date:
Hi,

Le 05/02/2010 06:50, Abhisekh Mohapatro a écrit :
> [...]
> I have a table which has a column with datatype BYTEA.
> In order to trigger TOAST mechanism for the column, I have made the following alteration.
> 
> ALTER TABLE table_name ALTER COLUMN column_name SET STORAGE EXTERNAL
> 

I added a ticket because it seems we can't change the storage
information (http://code.pgadmin.org/trac/ticket/134).

> Please suggest me if I have to make any other changes.
> Also I am unable to view the TOAST table.
> 
> Please help me out in viewing the table.
> 

Why would you like to "see"/"view" the TOAST table? I don't see the
advantages of this. The TOAST table seems more an implemantation detail.


-- 
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com