delete then insert - Mailing list pgsql-admin

From Ken Benson
Subject delete then insert
Date
Msg-id BN6PR19MB00810F01715E27D5AE8D77D0A3310@BN6PR19MB0081.namprd19.prod.outlook.com
Whole thread Raw
Responses Re: delete then insert  (Ron <ronljohnsonjr@gmail.com>)
Re: delete then insert  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-admin

 

So – I THINK I know – that when a row is deleted from a table – the row is not actually removed from the table – but, merely marked as deleted, thus becoming a dead tuple.
AUTOVACUUM – takes care of the process of removing these dead tuples.

 

My question. If – an insert occurs to that same table before autovacuum comes along, does that inserted record use a dead tuple? Or – does the insert result in an actual added row?

 

 

Ken Benson | ken @ infowerks-dot-com

 

 

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Compile query results into a table
Next
From: Ron
Date:
Subject: Re: delete then insert