Answer the question
In order to leave comments, you need to log in
What happens to memory after deleting a varchar entry in postgresql?
I figured out what is the difference between char and varchar data types in postgresql . I can see that when updating a tuple to varchar, the record is removed from disk and written to a new location in memory. But what happens to the freed memory space?
I have, for example, 4 bytes in memory, and what will happen to them? they will again be filled with a string of 4 bytes? in my opinion this is inefficient in terms of speed. Or will they just hang empty?
Ps tell me another program to view the memory occupied by the process on the hard disk and RAM
Answer the question
In order to leave comments, you need to log in
I can see that when updating a tuple in varchar, the record is removed from disk and fits into a new location in memory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question