An Azure managed PostgreSQL database service for app development and deployment.
Hi Naveen Kumar Kakarla (Quadrant Resource),
Welcome to Microsoft Q&A forum.
As I understand, you want to know the difference between vacuum and full vacuum in postgresql.
In addition to the answer by Mohammed Hantour, please refer to the official postgresql document statement which is as follows:
VACUUM FULLcan reclaim more disk space but runs much more slowly. Also, the standard form ofVACUUMcan run in parallel with production database operations. (Commands such asSELECT, INSERT, UPDATE, and DELETEwill continue to function normally, though you will not be able to modify the definition of a table with commands such asALTER TABLEwhile it is being vacuumed.)VACUUM FULLrequires anACCESS EXCLUSIVElock on the table it is working on, and therefore cannot be done in parallel with other use of the table. Generally, therefore, administrators should strive to use standardVACUUMand avoidVACUUM FULL.
VACUUM creates a substantial amount of I/O traffic, which can cause poor performance for other active sessions. There are configuration parameters that can be adjusted to reduce the performance impact of background vacuuming.
Let us know if this helps or you have further queries. Thanks