pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Automatic PK values not added to new rows
Date: Wed, 25 May 2022 10:45:53 -0700
Message-ID: <c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com> (raw)
In-Reply-To: <e4a17cde-9941-5eb5-e88d-246577e4488c@appl-ecosys.com>
References: <e4a17cde-9941-5eb5-e88d-246577e4488c@appl-ecosys.com>

On 5/25/22 10:43 AM, Rich Shepard wrote:
> The People table has 965 rows; the table structure is:

> 
> person_nbr 683 is not in any row to be inserted.
> 
> I was under the impression that the person_nbr for the new rows would start
> with 966 but that's apparently not happening.
> 
> What have I missed?

Do:

  select * from people_person_nbr_seq;

and report back the results.

> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (13+ messages)  latest in thread

Message-ID: <c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com>
Permalink:  ../c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com/
Also on:    postgresql.org/message-id/c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Automatic PK values not added to new rows
  In-Reply-To: <c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com>
  References: <e4a17cde-9941-5eb5-e88d-246577e4488c@appl-ecosys.com> <c8e3b0d2-dd92-3764-74c2-fb70b6b8bbc4@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox