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 1nu3tj-00040U-5N for pgsql-general@arkaria.postgresql.org; Thu, 26 May 2022 03:10:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nu3th-000078-Lg for pgsql-general@arkaria.postgresql.org; Thu, 26 May 2022 03:10:49 +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 1nu3th-00006x-BO for pgsql-general@lists.postgresql.org; Thu, 26 May 2022 03:10:49 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nu3tb-0002GM-C2 for pgsql-general@lists.postgresql.org; Thu, 26 May 2022 03:10:48 +0000 Received: by mail-oi1-x230.google.com with SMTP id r68so752550oie.12 for ; Wed, 25 May 2022 20:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=U4674okye5AVuzH5pVIv1smpvuLR7cGbdPvyQ14f9+M=; b=lmn98jjAV5j6NVdMR8VIdCQN2cFBrF0+ePwjCSVGYMtVl00vbqd7ARjOQxgkjtEF5W sRyZYRmrLdW9eSpS+0lg9q1Wff92DUGiv0c+mIsb5wRI1Q/HukpasLT3E9ZqLxxPNHSY 2yY+ix+8TDfR+DrA1QCVQ/HWynPRk8k7GMr+i9KOBfF7I28Jxn8Q9BSRf/Ex0QdR7eOt B0wbqUasSZgqEks7YLPKeS0JoEbt30vCifgyD6cjhJRL7paPdyaQrA4NGuJtlKAqvy1J Kyq0xkJEOtHlxPwqo0RV3+9Y99yX7c84TwjxS5f51PCz6aZBkqLJ944FGV7Iq53FnIkm vLXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=U4674okye5AVuzH5pVIv1smpvuLR7cGbdPvyQ14f9+M=; b=oT5BaHWWkiaFYXC0JN2vZPz4s85iA4+qY0DnMfrbjMctztsfeqhIQSf3vhexcLTda8 df9bzUdwDIp7rEPjJ7jvn1QbKf5Vu6/o96j60tpa+KH0+ZhQqlU57023xGP9aLzB7XdK q8gm6i8spLDLSnVLQYsuJyYlx1rLWl3aQ3/zCE56WnlnJgundaiWIKi6PqtizNXikBA/ qEb9Fdzt27NCKs30YKsHHjUHNwnKWYucf4KZfPB2cG1rTsbiUTothT93HT0MlJI3FaF7 FtVX/OpmHmoTXz970S1GKb8tUvH7UUQOdVkIka4XYqaa+QluFjNHj04nC7lhVnJj3GKy 6/pg== X-Gm-Message-State: AOAM533Re7A0ML3r4iinY1Am46je8T0WPuiaZ22hGqtnvp4lTOwGvu4q z/+b+XYjW7bDF578sLp6rBzIooYt4qU= X-Google-Smtp-Source: ABdhPJz3IFCosIsCK7n0Yne4nFnpjpYw6TbPJfumHaa/LGNPexm+V4T+6/dXFno3OBwVMJm2e4hCWg== X-Received: by 2002:aca:2b0a:0:b0:32b:46e2:1dd8 with SMTP id i10-20020aca2b0a000000b0032b46e21dd8mr120138oik.170.1653534641332; Wed, 25 May 2022 20:10:41 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id f16-20020a4ad810000000b0035ef3da8387sm219141oov.4.2022.05.25.20.10.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 May 2022 20:10:40 -0700 (PDT) Message-ID: Date: Wed, 25 May 2022 22:10:39 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Automatic PK values not added to new rows Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <4d12ca7-2188-f11e-9b2d-2098e2acfcf@appl-ecosys.com> From: Ron In-Reply-To: <4d12ca7-2188-f11e-9b2d-2098e2acfcf@appl-ecosys.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/25/22 13:17, Rich Shepard wrote: > On Wed, 25 May 2022, David G. Johnston wrote: > >> The value the sequence provides next is wholly independent of everything >> except the state of the sequence. It doesn’t care how many rows any table, >> even its owner, has. The very existence of the delete command should make >> this self-evident. > > David J., > > I didn't know that. people_person_nbr_seq would have to somehow peek into public.people and automatically update itself.  I'd be hopping mad if Postgresql did that after I explicitly set the value of people_person_nbr_seq to the value of my choosing, as if Postgresql knows better than I do what I want the next value of people_person_nbr_seq to be. -- Angular momentum makes the world go 'round.