Re: Table Partitioning: Sequence jump issue 10 in 10 with serial datatype

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: DrakoRod <drakoflames(at)hotmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Table Partitioning: Sequence jump issue 10 in 10 with serial datatype
Date: 2018-02-14 01:38:18
Message-ID: CAKFQuwajkSW07XY-xmjOkkd40zNfaGGQ2sBJNkagwJRsiGBLDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, February 13, 2018, DrakoRod <drakoflames(at)hotmail(dot)com> wrote:

> Hi folks!!
> I have a problem with a serial data type and partitioned table, I used
> rules
> to insert in child tables. But the problem is that the some does'nt insert
> and the sequence value jump sometimes 3 in 3 or 10 in 10.

Do not know what you mean by 'n in n'

>
> The example is the next:
>
> Don't see an example...

>
> I don't understand why sequence jumps in this case 4 in 4. And how to avoid
> this? I really can't change the use serial data type and how generate the
> id, because I don't developed the app.
>
> If I use triggers this don't happen?
>
>
Without more details it's hard to say but if you need hapless sequences
aren't the answer. There are many reasons committed values could contain
gaps. Or in this case avoid requiring it to be when using it.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message DrakoRod 2018-02-14 01:48:59 Re: Table Partitioning: Sequence jump issue 10 in 10 with serial datatype
Previous Message DrakoRod 2018-02-14 00:27:06 Table Partitioning: Sequence jump issue 10 in 10 with serial datatype