From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Thomas Boussekey <thomas(dot)boussekey(at)gmail(dot)com> |
Cc: | PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: When are largobject records TOASTed into pg_toast_2613? |
Date: | 2020-08-22 03:50:49 |
Message-ID: | 1a350fd7b5666decbeaa2a37902daa228fa405b3.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Dirk Krautschick | 2020-08-22 22:32:45 | Getting away from Oracle APEX, recommendations for PostgreSQL? |
Previous Message | Laurenz Albe | 2020-08-22 03:49:13 | Re: When are largobject records TOASTed into pg_toast_2613? |