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 1jPjKK-0004jV-Rq for pgsql-general@arkaria.postgresql.org; Sat, 18 Apr 2020 08:59:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPjKI-0007A3-Er for pgsql-general@arkaria.postgresql.org; Sat, 18 Apr 2020 08:59:50 +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 1jPjKI-00079w-0t for pgsql-general@lists.postgresql.org; Sat, 18 Apr 2020 08:59:50 +0000 Received: from campbell-lange.net ([178.79.140.51]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPjKF-0002mm-5E for pgsql-general@postgresql.org; Sat, 18 Apr 2020 08:59:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=campbell-lange.net; s=it; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=idSp9k6FacisCZhX5qhDHHjP5/WkVokogFO49bBP2a4=; b=ZAa5gVEu2sr4Wan27dFM5RwZbq vWERKPotOEHiKCTlSCtkQzVwq3J93YZu+yWqEsBzMP6H7Xc2CxxxqatxylaAcv1APzgqajA/SDkON i4pSTgQKmaG/Ch9gLAq8U4pGOp7evZcIPOYu7oAOGM953/BIYk4+fa1mfmO93IL60wy4=; Received: from 251.164.198.146.dyn.plus.net ([146.198.164.251] helo=rory-t450s) by campbell-lange.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPjKD-0006Tj-NN; Sat, 18 Apr 2020 08:59:45 +0000 Received: from rory by rory-t450s with local (Exim 4.92) (envelope-from ) id 1jPjKo-0002t2-Iq; Sat, 18 Apr 2020 10:00:22 +0100 Date: Sat, 18 Apr 2020 10:00:22 +0100 From: Rory Campbell-Lange To: Olivier =?iso-8859-1?Q?Lepr=EAtre?= Cc: pgsql-general@postgresql.org Subject: Re: serie of serie Message-ID: <20200418090022.GB10901@campbell-lange.net> References: <04d801d61551$8d6acf90$a8406eb0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <04d801d61551$8d6acf90$a8406eb0$@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 18/04/20, Olivier Leprêtre (o.lepretre@gmail.com) wrote: > I would like to generate a serie of serie and didn’t find how. With > generate_series. I can generate a serie ... > But how can I repeat this serie several times ? Something like this? gotest=> select a, b from generate_series(1, 3) as t(a), generate_series(1, 3) as u(b); a | b ---+--- 1 | 1 1 | 2 1 | 3 2 | 1 2 | 2 2 | 3 3 | 1 3 | 2