It was not such a convenient place for it where it was, contrary to the
comment.
elm->last = result; /* last returned number */
elm->cached = last; /* last fetched number */
elm->last_valid = true;
+ elm->increment = seq_form->increment_by;
last_used_seq = elm;
Buffer buf;
ItemId lp;
sequence_magic *sm;
- Form_pg_sequence seq_form;
if (seqh->tup.t_data != NULL)
return &seqh->tup;
MarkBufferDirtyHint(buf, true);
}
- seq_form = (Form_pg_sequence) GETSTRUCT(&seqh->tup);
-
- /* this is a handy place to update our copy of the increment */
- seqh->elm->increment = seq_form->increment_by;
-
return &seqh->tup;
}