Re: Postgresql "FIFO" Tables, How-To ? - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: Postgresql "FIFO" Tables, How-To ?
Date
Msg-id 20030716195545.GS5877@nasby.net
Whole thread Raw
In response to Re: Postgresql "FIFO" Tables, How-To ?  (Dmitry Tkach <dmitry@openratings.com>)
List 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 by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Billions of records?
Next
From: "Robert J. Sanford, Jr."
Date:
Subject: Re: Install new language - Prev: Re: Are you frustrated with PostgreSQL