Re: interesting sequence - Mailing list pgsql-sql

From Jasen Betts
Subject Re: interesting sequence
Date
Msg-id [email protected]
Whole thread Raw
In response to interesting sequence  (John Fabiani <[email protected]>)
Responses Re: interesting sequence
List pgsql-sql
On 2011-07-06, Kevin Crain <[email protected]> wrote:
> That's why you need to do this inside a function.  Basically just make
> an insert function for the table and have it calculate the count and
> do the insert in one transaction.

you will still get duplicates, so include code in the function to
retry if there is an error.

-- 
⚂⚃ 100% natural



pgsql-sql by date:

Previous
From: Samuel Gendler
Date:
Subject: Re: group by with sum and sum till max date
Next
From: Gavin Flower
Date:
Subject: Re: interesting sequence