pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Marcos Pegoraro <marcos@f10.com.br>
To: Simon Riggs <simon.riggs@enterprisedb.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: toast useless
Date: Tue, 31 Jan 2023 16:03:37 +0100
Message-ID: <5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at> (raw)
In-Reply-To: <CAB-JLwZe_mfgRMDQP5RVkT-mkrWZX6+FJFM6Ld2_j2HU1jisBw@mail.gmail.com>
References: <CAB-JLwbQr60=r=9+bspE0ohDTrAKhU8wZY-oa1U4QtrykviQOg@mail.gmail.com>
	<CANbhV-HHH6P6q7+0-EDusD63azZkk58CSWpK4Uq5RV3dOX4rYA@mail.gmail.com>
	<CAB-JLwabSOBHyebawoj2Z2iDWqhxeTTKSr3neVqO64JPUraYEw@mail.gmail.com>
	<CANbhV-FX0X5--5i-jahnK=uHwcErSv1sDQBCLj4bg+d=KB3A5Q@mail.gmail.com>
	<CAB-JLwZe_mfgRMDQP5RVkT-mkrWZX6+FJFM6Ld2_j2HU1jisBw@mail.gmail.com>

On Tue, 2023-01-31 at 09:34 -0300, Marcos Pegoraro wrote:
> Simon Riggs <simon.riggs@enterprisedb.com> escreveu:
> > On Tue, 13 Sept 2022 at 13:29, Marcos Pegoraro <marcos@f10.com.br> wrote:
> > > > 
> > > > What problem do they cause you?
> > > 
> > > 
> > > They don't cause any problem, I was just trying to get my database as clean as possible.
> > > I have some thousands of these toast tables with 8k bytes, so I was trying to eliminate them
> > > But if there is no way, ok
> > 
> > They might be optimized away one day, but for now, they are essential.
> 
> When version 16 comes in it´ll be possible to define [1] field STORAGE on CREATE TABLE step. 
> I have some thousands of toast files which are completely useless on my database, so how to remove them.
> 
> pg_upgrade ? Those unneeded toast files will be dropped automatically ?
> If not, if I do "alter table x alter column y set storage main" then toast file will still exist ?
> 
> [1] https://www.postgresql.org/message-id/flat/de83407a-ae3d-a8e1-a788-920eb334f25b@sigaev.ru

Leave them.  They won't bother you, and they won't occupy much space.

Yours,
Laurenz Albe





view thread (7+ messages)

Message-ID: <5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at>
Permalink:  ../5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at/
Also on:    postgresql.org/message-id/5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, marcos@f10.com.br, simon.riggs@enterprisedb.com
  Subject: Re: toast useless
  In-Reply-To: <5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at>
  References: <CAB-JLwbQr60=r=9+bspE0ohDTrAKhU8wZY-oa1U4QtrykviQOg@mail.gmail.com> <CANbhV-HHH6P6q7+0-EDusD63azZkk58CSWpK4Uq5RV3dOX4rYA@mail.gmail.com> <CAB-JLwabSOBHyebawoj2Z2iDWqhxeTTKSr3neVqO64JPUraYEw@mail.gmail.com> <CANbhV-FX0X5--5i-jahnK=uHwcErSv1sDQBCLj4bg+d=KB3A5Q@mail.gmail.com> <CAB-JLwZe_mfgRMDQP5RVkT-mkrWZX6+FJFM6Ld2_j2HU1jisBw@mail.gmail.com> <5608f8e9e4a93d1a5b2cf227542ca8fdd4874688.camel@cybertec.at>

* 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