There are too many filenames start with T

(T14_xxxxxxxx.1, T14_xxxxxxxx.2 .. T14_xxxxxxxx.18)

in postgresql base directory for one database.

The size of this database in base directory is 500GB with these files. After restart postgresql, these files gone out and the size of database in base/ directory is decreasing 200GB.

I read the following sites. But I can't found any thing about these files:


Also I also used pg_relation_filepath or select pg_class table. I didn't find any thing about these files.

What are these large files in "base" directory? Are these cache files? how could the application occur these files?

1 Answer 1


Those are the files behind temporary tables. Looks like somebody is creating large temporary tables. Such tables get deleted when the database session ends.

The files get cleaned up automatically when the database session ends, and in case of a server crash they get removed when PostgreSQL starts again. Never remove such files manually; rather, you should terminate the database session that created the temporary table.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.