Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVSVY-0000xe-JA for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jun 2018 02:06:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVSVW-0007Xu-Mg for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jun 2018 02:06:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVSVW-0007Xk-Gq for pgsql-docs@lists.postgresql.org; Wed, 20 Jun 2018 02:06:02 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVSVT-0003Sf-2m for pgsql-docs@postgresql.org; Wed, 20 Jun 2018 02:06:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6F6DD21C1C; Tue, 19 Jun 2018 22:05:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 19 Jun 2018 22:05:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=WOikkRFre25/8bQ8SbhxrY0+5eqkaWzBNUlcbfiEqZk=; b=aTIts/0R QqB77l0vE3oOsUa7hDjqqKbzaNX5lQX9cy0xhcJR7gnGzscMxri0qk9WBqQh5Vup bS5EREmtk3EKDPa7T0pElrpuBXHTI2d9kxnxLBxTjo+iL/eQI74TjsQI18sywAZM SwDx/JtUs4gQj+N+RFy3z/PtDF9r4kDXDCCMpjHhKC3rr9orE4qhV7wh8Kxuwh59 zskNLlSYvJZ6+f/LPkgLhJoMTfCllENkUNsZOXP8YSHSrlWG/v64/L33ndIU9VOq 4AgOVnZn2LkXLuSG0IvxMISU8yK+uvP8uTI1Fr1ZLumV8vpBQanGXKhokfD7deyl mMp5RlPZ6BfHGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=WOikkRFre25/8bQ8SbhxrY0+5eqka WzBNUlcbfiEqZk=; b=dGFIM8so3PSa5jTsreheDTH0GOuBeWAqGZhXS2blzSmrb nwq/D6VmOFfzkGI1No2bgrES8x5o/3sltXZSONjMBKQooyY6d87YbqAPu26R91wu /Lfndyf/xfTkgDkRgbyeccFWmbNw9MmPRwgj9Ayx3Q4wiBygfMSQFqh1rvZpgwNJ aQErkp8AYA0HDukAH6qpvRRXgI0yi8UDBw5IBRAlbnW5lmy3EYQccOH0Hf7LZGPj j2LszoNvRjV2KPA+IGeqGFfqi45b/3+TwlAQ4q8X3ICl7a6HWJ0Oep1L0O3qNTs/ vGZiL3hJg8cvjblcqG4EEGv6LM8uPX/tlBZlPYdZQ== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A86B102B6; Tue, 19 Jun 2018 22:05:55 -0400 (EDT) Date: Wed, 20 Jun 2018 11:05:52 +0900 From: Michael Paquier To: Bruce Momjian Cc: Pantelis Theodosiou , pgsql-docs@postgresql.org Subject: Re: Changes in serial / sequence introduced in Postgresql 10 Message-ID: <20180620020552.GB20245@paquier.xyz> References: <20180619184908.GF3637@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JYK4vJDZwFMowpUq" Content-Disposition: inline In-Reply-To: <20180619184908.GF3637@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --JYK4vJDZwFMowpUq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 19, 2018 at 02:49:08PM -0400, Bruce Momjian wrote: > I don't think we realize there was a behavioral change here. I think we > were just trying to fix the case where the sequence maximum didn't match > the serial maximum. I am not sure if it is worth documenting it at this > point though. Yeah, I agree that it is not worth documenting it. I don't recall reviewing the full patch related to identity columns, but I surely looked at patches which fixed post-commit bugs, and the new behavior is as a whole more consistent as sequences created with serial map to the real bound values associated with the underlying column type, and bigserial does the same: =# create table test (id bigserial primary key) ; CREATE TABLE =# select sequencename, max_value from pg_sequences; sequencename | max_value --------------+--------------------- test_id_seq | 9223372036854775807 (1 row) -- Michael --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlsptoAACgkQnvQgOdby QH24iA//eyuVYWwBVcb5Lum68tH7V+Qbr+jdiTDlgJlXcVGMaI0BtWlzuTkTZ1Wz e50qmxsRk5T40Ol096xvv0omG9piJziOYeyD4NWLPrVPZnxCPC9mlGlp+vwlEpg3 b2CcpMyE0RMg/NAPVXbmXyzTl/W8TKe0WSxNxjBaqWANZ0zAAD38oK2S5nnFVbZA SLNLvuzf71U21+z6lDpsI2PgWI6KwraztdkaBIzhgqTZvCwr5laOggJodmXlI80D P0xgGM4dmGmzXit6qymN7hQYtlCUnn8AiS9ozBe7PgQhZXgzm+nPTlys7kBF5uyO rwZpnEo1ddpywCexRze4eHxsJEshQYUJUfgADwNP1p2KsIThjZp6Ghm8bBbAv8/g lBVZlOfe28cTJRB4BiALRnehOgg+kudeAhkrdxxvbGwvK594tAyd8QNSOEI68HyN xl9ytjnruefv/BBjKiiqUUrdJOLBFAn270gu92nBgLXJQsCxRy/Fk18tSBAmsnOi HdGZtcpfp6tYoz/TIfvopMx93V5VWxgRsI1IFOwGDCndBxMw5D9YPgX56g5/AWiJ TZnOaSQJSJ6/evbIn0jj+cyljxk9T34E7r4WwHtEjbzSpeJSOTFIr/b8p4hBAtKm LJVbtvnJHetK9MdvH6kvYlKJP0iI8rWsvDwRmtvEhIJ3nwPOPpA= =q/9w -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq--