How does the transaction buffer work?

Поиск
Список
Период
Сортировка
От Veikko Mäkinen
Тема How does the transaction buffer work?
Дата
Msg-id 42B1D2DE.4020709@ecom.fi
обсуждение исходный текст
Ответы Re: How does the transaction buffer work?  (John A Meinel <john@arbash-meinel.com>)
Re: How does the transaction buffer work?  (Josh Berkus <josh@agliodbs.com>)
Re: How does the transaction buffer work?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Hey,

How does Postgres (8.0.x) buffer changes to a database within a
transaction? I need to insert/update more than a thousand rows (mayde
even more than 10000 rows, ~100 bytes/row) in a table but the changes
must not be visible to other users/transactions before every row is
updated. One way of doing this that I thought of was start a
transaction, delete everything and then just dump new data in (copy
perhaps). The old data would be usable to other transactions until I
commit my insert. This would be the fastest way, but how much memory
would this use? Will this cause performance issues on a heavily loaded
server with too little memory even to begin with :)


-veikko

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

Предыдущее
От: ken shaw
Дата:
Сообщение: How to determine whether to VACUUM or CLUSTER
Следующее
От: John A Meinel
Дата:
Сообщение: Re: How does the transaction buffer work?