Re: When are largobject records TOASTed into pg_toast_2613?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: When are largobject records TOASTed into pg_toast_2613?
Дата
Msg-id 1a350fd7b5666decbeaa2a37902daa228fa405b3.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: When are largobject records TOASTed into pg_toast_2613?  (Thomas Boussekey <thomas.boussekey@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: When are largobject records TOASTed into pg_toast_2613?
Следующее
От: Dirk Krautschick
Дата:
Сообщение: Getting away from Oracle APEX, recommendations for PostgreSQL?