Re: Postgresql "FIFO" Tables, How-To ?

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Postgresql "FIFO" Tables, How-To ?
Дата
Msg-id 20030716195545.GS5877@nasby.net
обсуждение исходный текст
Ответ на Re: Postgresql "FIFO" Tables, How-To ?  (Dmitry Tkach <dmitry@openratings.com>)
Список pgsql-general
On Wed, Jul 16, 2003 at 03:40:47PM -0400, Dmitry Tkach wrote:
> I believe, you can save one query by replacing 'if exists then update else
> insert' part with just 'delete unconditionally then insert'

I was going to mention this. Because updates in PGSQL are actually
DELETE/INSERT in a single statement, you can just code it that way.
--
Jim C. Nasby, Database Consultant                  jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Billions of records?
Следующее
От: "Robert J. Sanford, Jr."
Дата:
Сообщение: Re: Install new language - Prev: Re: Are you frustrated with PostgreSQL