Re: cost of empty fields - Mailing list pgsql-admin

From Enrico Weigelt
Subject Re: cost of empty fields
Date
Msg-id 20050421021902.GA16782@nibiru.borg.metux.de
Whole thread Raw
In response to Re: cost of empty fields  ("Jim C. Nasby" <decibel@decibel.org>)
Responses Re: cost of empty fields
List pgsql-admin
* Jim C. Nasby <decibel@decibel.org> wrote:
> If you setup rules on the view and just have the application select,
> insert, update, and delete from the view instead of the raw tables you
> won't need to change your application at all. Though you do need to be
> aware that you can't easily enforce uniqueness across multiple tables.
hmm. that doesnt sound stable enough for me.
this table is really critical and there's a lot of money in game
(realtime currency trading ...)

> As for clearing the fields, if by clearing you mean setting to NULL then
> you're correct, it would save space. Just remember that you won't
> actually be able to use the saved space until the table is vacuumed.
Yes, that's what I had in mind.

Vacuum is no problem. The exchange is closed at weekend, so there's
really enough time for vacuum full analyze :)


cu
--
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: VACUUM with a small table too much delayed.
Next
From: "Jim C. Nasby"
Date:
Subject: Re: cost of empty fields