Suppose I make a query like - SELECT * FROM table_name WHERE condition
I want to know how much disk space this queryset has consumed.
Suppose I make a query like - SELECT * FROM table_name WHERE condition
I want to know how much disk space this queryset has consumed.
You can use explain (analyze,buffers) SELECT * FROM table_name WHERE condition
that will give you information on all the blocks that were used, the temp ones show the direct usage by the query. You can get a little more information on this question