Commit a649174
Fix calculating size of a database or tablespace
pg_database_size only counts phyical files in database directory.
The sub-directory under database directory can't represent the real
storage size. The same issue happens on calculating the size of
tablespace as well.
Currently, PAX creates a separate directory to storage all its
phyical files, like micro-partition files, visibility-map files, etc.
To include the phyical files occupied by PAX tables, `db_dir_size`
should calculate its sub-directories recursively.1 parent 1e13f60 commit a649174
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
156 | 165 | | |
157 | 166 | | |
158 | 167 | | |
| |||
0 commit comments