Re: [GENERAL] 2 gig limitation?

Поиск
Список
Период
Сортировка
От jim@reptiles.org (Jim Mercer)
Тема Re: [GENERAL] 2 gig limitation?
Дата
Msg-id m10cqaq-000819C@mailbox.reptiles.org
обсуждение исходный текст
Ответ на 2 gig limitation?  (jim@reptiles.org (Jim Mercer))
Список pgsql-general
>
> i've noticed that one of our databases looks a bit strange:
>
> -rw-------  1 pgsql  pgsql  2147483648 Apr 28 23:06 gt
> -rw-------  1 pgsql  pgsql   171073536 Apr 29 08:28 gt.1
>
> is there some strange thing that happens when a database exceeds 2 gig in
> size?
>
> i have a nightly process which selects the previous 30 days data into a
> new table, then does a:
> alter table rename gt to gt_old;
> alter table rename gt_new to gt;
> create unique index gt_index on some_field;
>
> the create index failed.

further investigation:

i suspect what happend was that the gt table exceeded 2gig at some point.
this created physical files gt and gt.1

i did all of my selects from gt into gt_new.

my suspicion:

when i did the table rename, it only renamed the gt_new file, not the gt_new.1.
then my table was physically gt (previously gt_new) and gt.1 (the original).

--
[ Jim Mercer    Reptilian Research      jim@reptiles.org   +1 416 410-5633 ]
[ The telephone, for those of you who  have forgotten, was a commonly used ]
[ communications technology in the days before electronic mail.            ]
[ They're still easy to find in most large cities. -- Nathaniel Borenstein ]

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

Предыдущее
От: jim@reptiles.org (Jim Mercer)
Дата:
Сообщение: 2 gig limitation?
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [GENERAL] Desperately Seeking Regular Expression (fwd)