ALTER TABLE name ALTER [ COLUMN ] column_name SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN }postgres=# create table toast_1 (id int ,name text); CREATE TABLE postgres=# \d+ toast_1 Table "public.toast_1" Column | Type | Collation | Nullable | Default | Storage | Stats target | Description --------+---------+-----------+----------+---------+----------+--------------+------------- id | integer | | | | plain | | name | text | | | | extended | | Access method: heap
postgres=# select reltoastrelid,oid,relname from pg_class where relname='toast_1';
reltoastrelid | oid | relname
---------------+-------+---------
24885 | 24882 | toast_1
(1 row)
[postgres13@rhel711g 13577]$ ls -lrth {24882,24885}
-rw------- 1 postgres13 postgres13 0 Aug 10 16:11 24882
-rw------- 1 postgres13 postgres13 0 Aug 10 16:11 24885postgres=# insert into toast_1 values (1,'1');
INSERT 0 1
[postgres13@rhel711g 13577]$ ls -lrth {24882,24885}
-rw------- 1 postgres13 postgres13 0 Aug 10 16:11 24885
-rw------- 1 postgres13 postgres13 8.0K Aug 10 16:16 24882[postgres13@rhel711g 13577]$ ls -lrth {24882,24885}
-rw------- 1 postgres13 postgres13 8.0K Aug 10 16:18 24882
-rw------- 1 postgres13 postgres13 8.0K Aug 10 16:20 24885postgres=# alter table toast_1 alter name set storage PLAIN ; ALTER TABLE
postgres=# select reltoastrelid,oid,relname from pg_class where relname='toast_1'; reltoastrelid | oid | relname ---------------+-------+--------- 24885 | 24882 | toast_1 (1 row)
postgres=# vacuum FULL toast_1; ERROR: row is too big: size 30696, maximum size 8160
postgres=# vacuum FULL toast_1; VACUUM postgres=# select reltoastrelid,oid,relname from pg_class where relname='toast_1'; reltoastrelid | oid | relname ---------------+-------+--------- 0 | 24882 | toast_1 (1 row)