Re: Re: Postgres and Oracle differences and questions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Postgres and Oracle differences and questions
Дата
Msg-id 28278.981560178@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: Postgres and Oracle differences and questions  (Hannu Krosing <hannu@tm.ee>)
Ответы Re: Re: Postgres and Oracle differences and questions  (Jan Wieck <janwieck@Yahoo.com>)
Список pgsql-interfaces
Hannu Krosing <hannu@tm.ee> writes:
> What are the performance implications - is it 1.01,  10 or 1000 times 
> slower than accessing the same file from fs for files in the range of 
> typical Office documents (0.2-20M) ?

I think that's a meaningless question unless you specify a particular
usage pattern --- but in any case, I doubt anyone has tried to
characterize it that way.  Feel free to run some experiments and tell
us about your results...

> Will updating one non-toasted field in a tuple copy the toasted one
> as well, or is only the reference copied ?

It copies the reference, see toast_insert_or_update in
src/backend/access/heap/tuptoaster.c.

Speaking of which, though, it looks like an update or insert will
forcibly uncompress (and later recompress) a compressed-in-line datum,
which seems like a waste of cycles to me.  Jan, shouldn't the test for
VARATT_IS_EXTENDED at line 357 instead read VARATT_IS_EXTERNAL?
        regards, tom lane


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Re: Postgres and Oracle differences and questions
Следующее
От: Tom Lane
Дата:
Сообщение: pgAccess fails to launch on HPUX