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 1pmLhn-00039l-O3 for pgsql-general@arkaria.postgresql.org; Tue, 11 Apr 2023 21:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmLhm-0003Wg-Ma for pgsql-general@arkaria.postgresql.org; Tue, 11 Apr 2023 21:39:10 +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 1pmLhm-0003W4-BX for pgsql-general@lists.postgresql.org; Tue, 11 Apr 2023 21:39:10 +0000 Received: from evolvis.org ([2a02:a00:2000:f::1]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmLhj-0008Pk-KV for pgsql-general@lists.postgresql.org; Tue, 11 Apr 2023 21:39:09 +0000 Received: from x61w.mirbsd.org (xdsl-212-8-144-34.nc.de [212.8.144.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by evolvis.org (Postfix) with ESMTPSA id 28C98100955 for ; Tue, 11 Apr 2023 21:39:05 +0000 (UTC) Received: by x61w.mirbsd.org (Postfix, from userid 1000) id C0733613D2; Tue, 11 Apr 2023 23:39:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by x61w.mirbsd.org (Postfix) with ESMTP id BB72D602E4 for ; Tue, 11 Apr 2023 23:39:04 +0200 (CEST) Date: Tue, 11 Apr 2023 23:39:04 +0200 (CEST) From: Thorsten Glaser To: pgsql-general@lists.postgresql.org Subject: Re: Guidance on INSERT RETURNING order In-Reply-To: Message-ID: <8a57a79b-6e73-99b4-8f3a-859fccb5eb3b@evolvis.org> References: <95fbd8c8-2f7a-38a1-4a41-b2ac3763d89c@aklaver.com> <3b1117cc-fe46-1ca0-d0f-92304c6fc79@evolvis.org> Content-Language: de-DE-1901 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 11 Apr 2023, Federico wrote: >I was under the impression that when using INSERT SELECT ORDER BY the sequ= ence >ids were generated using the select order. But someone said that=E2=80=99s not guaranteed, especially when INSERT will be parallelised later. bye, //mirabilos --=20 15:41=E2=8E=9C Somebody write a testsuite for hello= world :-)