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 1ntvZC-0007Kf-QZ for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 18:17:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntvZB-00046c-MY for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 18:17:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntvZB-00045U-CD for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 18:17:05 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntvZ6-000286-S8 for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 18:17:04 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9FFD65C011B; Wed, 25 May 2022 14:16:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 25 May 2022 14:16:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1653502618; x= 1653589018; bh=U6Nt8sh4uRL/UA0wO3nt0Nh7Ae6ZfTRBn27nh5q9YPE=; b=r mNF83WzIls6ZVbbyrDoX+DfVl0uaPeHs28fyhkg/EOnG4KMUoG7Nhi8zmd3I/7DP aap5O8DxswNCKPW9BDGdxFuaAaZFuGnboXpn7k9SfN+A/U/Jt+DiaWtKK8d+D85G y9SLye3Z+VJcPxwfytV015hDDzq6hpfDPjA1hKQ+ynACDFuk9AU6Uk9yLc9lZwmn xpJlldl8V/i5YZ+j6HQ6CQAP+jJnsIjqAr2aeep3elExzbZi5crV4EJhS6iWtJBT qNj2KTftc50Lwl/qxlZ1IgPVFB+xJ7HrGgUeJoW8NNPoyUIR/CqRj1x+Dlvi6CjA ecQsq1X7J2sJTVsJKqqLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1653502618; x=1653589018; bh=U 6Nt8sh4uRL/UA0wO3nt0Nh7Ae6ZfTRBn27nh5q9YPE=; b=yT4LeYmqy5hT/GR7J bWWtZjhfLQsObs4TkEzbE3lg00qAoD+ah9tImgHYyM9quWDYfdP4ofaa0Pcw7A2G LOVPMV1Ai9BjNeKz8Clz3gfxeP4EvNA3a0erX2KU3VopZArFCCSqjqnH4ZfqEYO2 x5oJkxAFrhSy13nH6VrcEA0Gb1K5FyJDQXsAP7oc4JOqCvPZLyJESckRF9JwiBNI ZiAyXFbf4BzdlHnzxDZmCOmWJr9/rAr5e9HcaMl8WlcRvjZQPznfNFmh7KE/8XYZ PHgffl9tJKNFYflFqmeDtxEkQoIXe5u7KMSTiIwQgwHmgq00fo5a4bh/TcuxDrXc 9pDfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeehgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 May 2022 14:16:57 -0400 (EDT) Subject: Re: Automatic PK values not added to new rows To: Rich Shepard , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Wed, 25 May 2022 11:16:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/25/22 11:15 AM, Rich Shepard wrote: > 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; What is max(person_nbr)? > > Is there a way for me to synchronize the two? > > Thanks, > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com