pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
vacuum & free space map
3+ messages / 2 participants
[nested] [flat]

* vacuum & free space map
@ 2019-08-06 08:13 Luca Ferrari <fluca1978@gmail.com>
  2019-08-06 13:50 ` Re: vacuum & free space map Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Luca Ferrari @ 2019-08-06 08:13 UTC (permalink / raw)
  To: pgsql-general

Hi,
I'm not understanding why a vacuum full clears a FSM information while
a normal vacuum does not. On a table with fillfactor = 50 I've got:

testdb=> vacuum full respi.pull_status;
VACUUM
testdb=> SELECT * FROM pg_freespace( 'respi.pull_status', 0 );
 pg_freespace
--------------
            0
(1 row)

testdb=> vacuum respi.pull_status;
VACUUM
testdb=> SELECT * FROM pg_freespace( 'respi.pull_status', 0 );
 pg_freespace
--------------
         4096
(1 row)

So why is vacuum full not considering the fillfactor and clearing the
FSM? Or am I misunderstanding the results from pg_freespace?
This is on postgresql 11.4.

Thanks,
Luca





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: vacuum & free space map
  2019-08-06 08:13 vacuum & free space map Luca Ferrari <fluca1978@gmail.com>
@ 2019-08-06 13:50 ` Tom Lane <tgl@sss.pgh.pa.us>
  2019-08-06 16:08   ` Re: vacuum & free space map Luca Ferrari <fluca1978@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2019-08-06 13:50 UTC (permalink / raw)
  To: Luca Ferrari <fluca1978@gmail.com>; +Cc: pgsql-general

Luca Ferrari <fluca1978@gmail.com> writes:
> I'm not understanding why a vacuum full clears a FSM information while
> a normal vacuum does not. On a table with fillfactor = 50 I've got:

VAC FULL builds a new physical table, which has no FSM to start with.
Possibly, when fillfactor < 100, that's something that should be
created; the decision not to bother is probably older than the
fillfactor knob.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: vacuum & free space map
  2019-08-06 08:13 vacuum & free space map Luca Ferrari <fluca1978@gmail.com>
  2019-08-06 13:50 ` Re: vacuum & free space map Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-08-06 16:08   ` Luca Ferrari <fluca1978@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Luca Ferrari @ 2019-08-06 16:08 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general

On Tue, Aug 6, 2019 at 3:50 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> VAC FULL builds a new physical table, which has no FSM to start with.

Thanks, that was I was suspecting.

Luca





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-08-06 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06 08:13 vacuum & free space map Luca Ferrari <fluca1978@gmail.com>
2019-08-06 13:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-08-06 16:08   ` Luca Ferrari <fluca1978@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox