Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uuVNs-00BDq3-9F for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2025 12:17:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uuVNq-007Agk-6V for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2025 12:17:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uuVNp-007Agc-TL for pgsql-bugs@lists.postgresql.org; Fri, 05 Sep 2025 12:17:38 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uuVNo-000g3s-18 for pgsql-bugs@lists.postgresql.org; Fri, 05 Sep 2025 12:17:37 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-61feb87fe26so2047982a12.1 for ; Fri, 05 Sep 2025 05:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1757074654; x=1757679454; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=LokisZl78Y4wPxQ4gmy7PZBZM0+tXnRc/TA5bc4Zcu4=; b=RyHs4hxNoPSk7m+i4J6oJBULUiFowX95wm6jHO8wZEUAomfWcW0UZ3aEgxdMa1Vv2V Wwg4Rr9SLXi6e/0IOkl0lpkwWRXu05dh7UVfmfOXM1siMWf5aV06bIfgD1lbtN1yxXVD NPajit1YJGjZpUP2cBkCxW3cdGD6A7Ze2FLkhACCqCt90Ng44IIGfXYD0MTUc3f9t5UW dPsFnjfHNs+RDPoFJAazY/SyUUjRgkWdkAlwpVLTr9Lrhvhvuuv4txF3nfPzQ+/jX9Q1 eOTUnnZraweFypnih9E+lJJ1RrmVUNBeWJh96xOOo7fZHzhOCiWFPhKI5evbTtP9vXCF LOhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757074654; x=1757679454; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LokisZl78Y4wPxQ4gmy7PZBZM0+tXnRc/TA5bc4Zcu4=; b=EKFw2IqLsRLoXm/nlK3v/v7B/omAVyLG3utXLf4F8BHaNOwxOFBda76ve4liHRTHeU 7rzukwTBlP8yG/y/SbeFDqwuVs+l0R74ybjG97v29gw20xDeLNskgPMrAgzqMzkIw1el 0UH4kzNlAsmMjFQ9tyI4viVY+SpcSvJky/F2KArCdVJTBH6SQiqDPIa4MxEwcId/5jI9 kY4FdKeZ2rMRunKPxcvdco4GU92b2vCwkcMJVBD68LECWGR9l5m8UFfCd9a5duQDR1Z7 oSmCS7bNkt/8VEZZ6+VNnLDjQm4DKd3uRLGaO6OqhEAbfl6mQEeUxgAtW6rbRM1H1vT+ V5EQ== X-Forwarded-Encrypted: i=1; AJvYcCWnhI9Op6nBCEi5R5tMVG2/eUD63R2SgNGN4lR+cXSlkvbdjHgN/T5EWgjHteDleRSKX0c5pCn9IsWb@lists.postgresql.org X-Gm-Message-State: AOJu0Yz6c5He+0VfYQTqXVExIWQN8QJqrrNJCwzSGKK/ZX1tHPlFpsmS jVr3bPWu+JTnwpjN259Ivfz8rGDObIbeYnYTC7uH1EhOMyogzj89H4xOICzsVsxrCuz2QV4EnoQ uYV/8 X-Gm-Gg: ASbGncvXlhX/sQyOgpHSNqIHA4+HArJEhvsBQWL6ef7JAnjOtY9/POCPiFhPt24bQ2n bHMu4C2XYdp2cYq4W7OSyPQ+R5YSl15k8cwsXIM8rFi2MbHdwqdq3IE7e12F4ialV9wdXJ7FtlJ g43qZhF3YYYXkDV8pRA8lRehdDstUPJ3A1nkHc32p2aCUCOrivmPNxuALdGELvs+2SgDu7YLFZ+ ExrRUdP1sb0PpKFQteAS5Rb7csAztc27hwyPfRAvNGH1IyAxB/MwqZFN3NilxEwQpMMDmfTqKYU rPYUzXG25mifn3c0b8Yfad3yJSyWAnclP1F+uDJyF0FGGyb+wYcJGoEp9SEXLxEUPceepTriKUM Gp7+dGs9eKBtu91Q1HUHMY9MtVZgW67J2cdZRTD0uuHt+M2WgNIn4yrKdfAnUCTve X-Google-Smtp-Source: AGHT+IHz/AWNEUfePJxJoUtL1Ipj6+RqH2Kz5aAJEjM0rrKMi99ztmOXZbOUbhCybdk1/EfPCoM3lA== X-Received: by 2002:a17:907:3d16:b0:afe:8bee:fdb9 with SMTP id a640c23a62f3a-b01d8c99b67mr2240775066b.28.1757074654528; Fri, 05 Sep 2025 05:17:34 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:b79a:9134:647a:f77a:ebb0]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b04670b5eacsm656535466b.27.2025.09.05.05.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Sep 2025 05:17:34 -0700 (PDT) Message-ID: <8dec121e2d3bfc1149d36359345fbce1faa087aa.camel@cybertec.at> Subject: Re: BUG #19034: Recursive function with sql_body can replace an existing function but can not be created on it's own From: Laurenz Albe To: Tom Lane , Yushu Chen Cc: katja.henke@foo.ag, pgsql-bugs@lists.postgresql.org Date: Fri, 05 Sep 2025 14:17:33 +0200 In-Reply-To: <1030106.1756999498@sss.pgh.pa.us> References: <19034-de0857b4f94ec10c@postgresql.org> <1030106.1756999498@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-09-04 at 11:24 -0400, Tom Lane wrote: > Given that recursive SQL functions are a tiny-minority use case > and there's already a perfectly serviceable way to make them > (ie use an old-style body), I seriously doubt that we'll do > anything about this request. Sure, but creating a dump that will fail to load is not good. I don't have a smarter idea that dumping standard SQL functions in two statements like you suggested... Yours, Laurenz Albe