Unix Technical Forum

Re: Pre-allocated free space for row

This is a discussion on Re: Pre-allocated free space for row within the pgsql Hackers forums, part of the PostgreSQL category; --> > > My wild guess is that deleting all index pointers for a removed index > > is more-or-less ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 06:31 AM
Zeugswetter Andreas DAZ SD
 
Posts: n/a
Default Re: Pre-allocated free space for row


> > My wild guess is that deleting all index pointers for a removed

index
> > is more-or-less the same cost as creating new ones for
> > inserted/updated page.

>
> Only if you are willing to make the removal process
> recalculate the index keys from looking at the deleted tuple.


The bgwriter could "update" all columns of dead heap tuples in heap
pages
to NULL and thus also gain free space without the need to touch the
indexes.
The slot would stay used but it would need less space.

Andreas

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 06:31 AM
Tom Lane
 
Posts: n/a
Default Re: Pre-allocated free space for row

"Zeugswetter Andreas DAZ SD" <ZeugswetterA@spardat.at> writes:
> The bgwriter could "update" all columns of dead heap tuples in heap
> pages
> to NULL and thus also gain free space without the need to touch the
> indexes.
> The slot would stay used but it would need less space.


Not unless it's running a transaction (consider TOAST updates).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com