Re: Inserting a needed record before a select - Mailing list pgsql-general

From Jay O'Connor
Subject Re: Inserting a needed record before a select
Date
Msg-id 3.0.1.32.20030414130911.0085ae90@cybermesa.com
Whole thread Raw
In response to Re: Inserting a needed record before a select  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: Inserting a needed record before a select  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general
At 12:27 PM 04/14/2003 -0600, scott.marlowe wrote:

>Crap, sorry, you're right.  You'll need to use a rule.  Rules are simpler
>than triggers / functions.  They're described in the programmer's guide,
>section 13 for 7.3.2.

Problem is RULEs don't seem to have the sophistication I need (boolean
logic...search for a record and if it doesn't exists, insert it, then
re-SELECT on the same table)

Take care,
Jay


pgsql-general by date:

Previous
From: "Ed L."
Date:
Subject: Re: Batch replication ordering (was Re: [GENERAL] 32/64-bit
Next
From: Dennis Gearon
Date:
Subject: Re: Batch replication ordering (was Re: [GENERAL] 32/64-bit