Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntvXj-0007Gu-3b for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 18:15:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntvXg-0007gD-O2 for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 18:15:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntvXg-0007g3-D0 for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 18:15:32 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntvXe-0006VT-Dl for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 18:15:32 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id D9F392A0107 for ; Wed, 25 May 2022 11:15:27 -0700 (PDT) Date: Wed, 25 May 2022 11:15:27 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Automatic PK values not added to new rows In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 25 May 2022, Adrian Klaver wrote: > Do: > select * from people_person_nbr_seq; > and report back the results. Adrian, Huh! bustrac=# select * from people_person_nbr_seq; last_value | log_cnt | is_called ------------+---------+----------- 683 | 32 | t (1 row) It's out of sync with select max(person_nbr) from people; Is there a way for me to synchronize the two? Thanks, Rich