Re: Disk is filling up with large files. How can I clean?
От | Philip Semanchuk |
---|---|
Тема | Re: Disk is filling up with large files. How can I clean? |
Дата | |
Msg-id | D816802A-38F4-4402-A542-063DF5BB5648@americanefficient.com обсуждение исходный текст |
Ответ на | Re: Disk is filling up with large files. How can I clean? (Torsten Förtsch <tfoertsch123@gmail.com>) |
Ответы |
Re: Disk is filling up with large files. How can I clean?
|
Список | pgsql-general |
> On Oct 9, 2024, at 5:52 AM, Torsten Förtsch <tfoertsch123@gmail.com> wrote: > > Filenames like 16665, 16665.1, 16665.2 etc all represent the same table (or similar). The number 16665 is called the filenode. > > To get a list of file nodes for a specific database you can run: > > SELECT oid::regclass::text, relfilenode FROM pg_class; > > The /16384/ in the path represents the database. To decipher that you can run: > > SELECT datname, oid FROM pg_database; > > Once you have all that information, you know which database to connect to and which tables are big. Then you can DROP/DELETE/TRUNCATEor so. Mikael, if you’re unaware of VACUUM FULL (as opposed to just VACUUM), you should read about that too. Hope that helps, Philip
В списке pgsql-general по дате отправления: