Re: interesting sequence - Mailing list pgsql-sql

From Jasen Betts
Subject Re: interesting sequence
Date
Msg-id iv1kct$vb$1@reversiblemaps.ath.cx
Whole thread Raw
In response to interesting sequence  (John Fabiani <johnf@jfcomputer.com>)
Responses Re: interesting sequence  (Kevin Crain <kevin.crain1@gmail.com>)
List pgsql-sql
On 2011-07-06, Kevin Crain <kevin.crain1@gmail.com> 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