Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iX2dl-0006kP-HC for pgsql-docs@arkaria.postgresql.org; Tue, 19 Nov 2019 12:29:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iX2dj-0000Qf-Nh for pgsql-docs@arkaria.postgresql.org; Tue, 19 Nov 2019 12:29:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iX2dj-0000QV-D1 for pgsql-docs@lists.postgresql.org; Tue, 19 Nov 2019 12:29:51 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iX2dc-0004n8-1X for pgsql-docs@lists.postgresql.org; Tue, 19 Nov 2019 12:29:50 +0000 Received: from [192.168.178.20] (unknown [185.38.49.17]) by mail.i-mark.de (Postfix) with ESMTPSA id EF1A31580F84 for ; Tue, 19 Nov 2019 13:29:36 +0100 (CET) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 185.38.49.17) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.178.20] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: documentation for WITH RECURSIVE To: pgsql-docs@lists.postgresql.org References: <20712.1574098328@sss.pgh.pa.us> <94685a79-0b75-34ad-16bb-e1f23eb28c24@a-kretschmer.de> From: Andreas Kretschmer Message-ID: Date: Tue, 19 Nov 2019 13:29:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <94685a79-0b75-34ad-16bb-e1f23eb28c24@a-kretschmer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 18.11.19 um 20:12 schrieb Andreas Kretschmer: > > > Am 18.11.19 um 18:32 schrieb Tom Lane: >> Andreas Kretschmer writes: >>> One of our customers had problems with the syntax of WITH RECURSIVE. He >>> suggested that the documentation should be improved, maybe with this >>> sentence: >>> "If any of the CTEs is recursive, the recursive keywork must be present >>> after with", so to make sure that it does not refer to just one of the >>> named subqueries. >> Hm, was this intended for the SELECT man page (presumably in the >> "WITH Clause" section), or for section 7.8? >> > Hi Tom, it would be good if we can also add this to chapter 7.8, wouldn't it? Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com