Re: When are largobject records TOASTed into pg_toast_2613? - Mailing list pgsql-general

From Laurenz Albe
Subject Re: When are largobject records TOASTed into pg_toast_2613?
Date
Msg-id 1a350fd7b5666decbeaa2a37902daa228fa405b3.camel@cybertec.at
Whole thread Raw
In response to Re: When are largobject records TOASTed into pg_toast_2613?  (Thomas Boussekey <thomas.boussekey@gmail.com>)
List pgsql-general
On Fri, 2020-08-21 at 18:59 +0200, Thomas Boussekey wrote:
> I wrote this BASH script to remove the TOAST table, if it may help anyone:
> 
> [...]
>   toast_pages="$(psql -U postgres --dbname=${database_name} -At --no-psqlrc -c "select relpages from pg_class where
relname= 'pg_toast_2613';" )"
 
>   toast_tuples="$(psql -U postgres --dbname=${database_name} -At --no-psqlrc -c "select reltuples from pg_class where
relname= 'pg_toast_2613';" )"
 
> [...]

That are just the estimates.
You need to ascertain that the table is *really* empty.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: When are largobject records TOASTed into pg_toast_2613?
Next
From: Dirk Krautschick
Date:
Subject: Getting away from Oracle APEX, recommendations for PostgreSQL?