0

Suppose I make a query like - SELECT * FROM table_name WHERE condition

I want to know how much disk space this queryset has consumed.

1 Answers1

2

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

NuLo
  • 1,298
  • 1
  • 11
  • 16