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 1gVfV1-0001op-Sc for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Dec 2018 16:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gVfV0-00026i-Eg for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Dec 2018 16:30:38 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVfV0-00026S-7O for pgsql-hackers@lists.postgresql.org; Sat, 08 Dec 2018 16:30:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVfUx-000230-MC for pgsql-hackers@postgresql.org; Sat, 08 Dec 2018 16:30:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wB8GUVUg030254; Sat, 8 Dec 2018 11:30:31 -0500 From: Tom Lane To: John Naylor cc: pgsql-hackers@postgresql.org Subject: Re: docs: outdated reference to recursive expression evaluation In-reply-to: References: Comments: In-reply-to John Naylor message dated "Sat, 08 Dec 2018 07:21:09 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30252.1544286631.1@sss.pgh.pa.us> Date: Sat, 08 Dec 2018 11:30:31 -0500 Message-ID: <30253.1544286631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk John Naylor writes: > In confg.sgml, in the section about max_stack_depth, there's this sentence: > "The safety margin is needed because the stack depth is not checked in > every routine in the server, but only in key potentially-recursive > routines such as expression evaluation." > Since the change in expression evaluation in v10, there's probably a > better example of recursive routines, but I'm not sure what that would > be. We could say "expression compilation" and it'd still be valid. Or just drop the last four words altogether. I don't think we want to expend the verbiage to be more precise here, since it's only a tangential point. BTW, while looking at this I noted that copyfuncs.c has a check_stack_depth call but outfuncs, readfuncs, equalfuncs don't. Surely that's not good. regards, tom lane