Re: Re: Why Size Of Data Backed Up Varies Significantly In SQL 6.5?

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Re: Why Size Of Data Backed Up Varies Significantly In SQL 6.5?
Дата
Msg-id 200104261622.LAA03050@jupiter.jw.home
обсуждение исходный текст
Ответ на Re: Why Size Of Data Backed Up Varies Significantly In SQL 6.5?  (jdassen@cistron.nl (J.H.M. Dassen (Ray)))
Список pgsql-general
J.H.M. Dassen (Ray) wrote:
> Wendy <windy1a@yahoo.com> wrote:
> >I backed up a database at night and noted the size to be about over 300MB.
> >The following morning, I again backed up the same database and found out
> >the size to be less than 100MB. There was no massive deletes by users
> >during that morning.
> >What would account to that vast difference in size?
>
> An automatically executed script (e.g. cron job) that ran a VACUUM on the
> database during the night.
>
> >I'm really worried about this database because I don't understand what is
> >happening here.
>
> Deleted table entries still occupy disk space; VACUUMing cleans them out,
> thereby shrinking the database's disk space usage.

    What leads to the question if he's thinking that taking a tar
    archive from the data directory is a proper way of backing up
    a  PostgreSQL installation. You can do so, but have to ensure
    that the postmaster isn't running  while  doing  it.  And  on
    restore  you're  not  able  to  get  anything  less  than all
    database of the entire installation. Better look  at  pg_dump
    for backing up PostgreSQL.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


В списке pgsql-general по дате отправления:

Предыдущее
От: "Tamsin"
Дата:
Сообщение: updating with max value
Следующее
От: martin.chantler@convergys.com
Дата:
Сообщение: Data Export from PostGreSQL