Index file is growing when I drop a table. Why? - Mailing list pgsql-admin

From Ron Johnson
Subject Index file is growing when I drop a table. Why?
Date
Msg-id CANzqJaBZLxdF+057oKo468nu7nq0jr+6tyOcTM-P6Cy+3kh3jQ@mail.gmail.com
Whole thread Raw
Responses Re: Index file is growing when I drop a table. Why?
List pgsql-admin
Pg 15.4

I'm dropping the large table "bar" in a test database, and it's taking a long time.  Thus, I thought I'd watch it deleting files.

To my surprise, though, the files that store the index are growing.  What's up with that?

foo=# select * from pg_class where oid = 41533;
-[ RECORD 1 ]-------+----------
oid                 | 41533
relname             | i_bar_su1
relnamespace        | 2200

$ pwd
/var/lib/pgsql/15/data/base/16482
$ la -aFl 41533*
-rw------- 1 postgres postgres 1073741824 2023-11-16 11:15:06 41533
-rw------- 1 postgres postgres  189792256 2023-11-16 11:24:15 41533.1


Five minutes later, 41533.1 is 4.3MB larger.

$ dir 41533* 
-rw------- 1 postgres postgres 1073741824 2023-11-16 11:15:06 41533
-rw------- 1 postgres postgres  194101248 2023-11-16 11:29:44 41533.1

pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: bulk DMLs
Next
From: Achilleas Mantzios
Date:
Subject: Re: Index file is growing when I drop a table. Why?