Skip to content

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Nov 29, 2025

No description provided.

jianhe-fun and others added 3 commits October 30, 2025 10:27
demo:
create table t(a text) with (fillfactor = 100, toast.vacuum_truncate=true);
create table t2(like t including parameters);
\d+ t2

                                          Table "public.t2"
 Column | Type | Collation | Nullable | Default | Storage  | Compression | Stats target | Description
--------+------+-----------+----------+---------+----------+-------------+--------------+-------------
 a      | text |           |          |         | extended |             |              |
Access method: heap
Options: fillfactor=100, toast.vacuum_truncate=true

discussion: https://postgr.es/m/CACJufxHr=nKEsS66M7rTHgB+mXdQ948=_eJ1jztAc7PT-eJefA@mail.gmail.com
`fsm_truncate_avail` changes FSM page when relation is truncated,
resetting all FSM-tree nodes to zero. However, there is a case when
all nodes were already zero, so no actaul modiifcation made.
This commit emits WAL-logging FSM FPI for that case.
@vicpopov vicpopov force-pushed the master branch 2 times, most recently from 4a1b4f5 to 2765212 Compare December 1, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants