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 1oaLFN-0000pM-Rg for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Sep 2022 18:11:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaLFM-0007MB-Kx for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Sep 2022 18:11:56 +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 1oaLFM-0007M0-9v for pgsql-hackers@lists.postgresql.org; Mon, 19 Sep 2022 18:11:56 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oaLFJ-0006Pi-Ar for pgsql-hackers@postgresql.org; Mon, 19 Sep 2022 18:11:55 +0000 Received: by mail-lf1-x134.google.com with SMTP id s6so37081127lfo.7 for ; Mon, 19 Sep 2022 11:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=PHtpNZyydqs3lkfHC9ZMtRWHRHFonZfES81YzO2K+iE=; b=AUHmNpMYf2c3+GMSzcm+7Yi/gZN3Yhg4G0R/QYPNRNDisYYtFSpqMRIw2Q3jekVEvX mZOhFa/m4mX5B/vGKgXzEZs57xfu4GsSnfJ7aWJRSmQUePd1q9ZC/Ylnxe4kXxtWDbYi sADLAZrpbDLSdmu9bpK6LC/zSyjYRDGRTgx+GnAZN4ouJuPaIGLMHGW3Nd7MHIuBDmDV DgTKUAERZVaC3jPOx+AemmwtwtHo4VtagRpNI53SnPdedKEvL5SkrJOfVwfSLUnpJ4G9 5CkJD08EuC1zJI9UpyVz/47awqUDAljUO27R/wNo5iiZx+CDiNUBxlDEMH8cnQERJFHn zVtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=PHtpNZyydqs3lkfHC9ZMtRWHRHFonZfES81YzO2K+iE=; b=LxhmPM0xoWq2ss3EA55d51oy97QXDFPzsiJO1JT1JIMII1OKs13VPcJUqK3tac8LcY PVotXvC746h1K5mIbf3u9J7yUCNfXE0YFhdOlHuv84EzZUXdZbBJJxTgtlPa5D1SPmUX XNxa6/QMyIZ+pdR5HMJIg4eKJz4E4NEZgMdJlYXbAzS084TkeqXnyFKNSujfqaeRtky6 s5pDRrgVd6F85PwoHrAneEZakB1CsRAevfQQrgWcIh5XKA1FBc0S9QUEsWzHT0zwXo2M peTiqA2TApv+8Q6BrCsNTtofiHQyQN5ppK99pFDJtFpO73rN9hpCGy9Jknp4jNonFX0j Oy+g== X-Gm-Message-State: ACrzQf2ZtmOnj8VtKhjs2iQXTJIMXiw6rwZBEFAQV6FRakbfRrDkYqpT AED4rVVc/aW9VISapUEJqfWc1Rn89KFTCmbXtjM= X-Google-Smtp-Source: AMsMyM5zhH8JrRdbyMjCMYhdSw4l7QgwstgF6tvaqB6T3fRgeaSOZpjg6cUnqYyVoR5M0MDZSH9hXou5WQPmUBa8cYA= X-Received: by 2002:a05:6512:b85:b0:499:202a:bde9 with SMTP id b5-20020a0565120b8500b00499202abde9mr6853873lfv.550.1663611111845; Mon, 19 Sep 2022 11:11:51 -0700 (PDT) MIME-Version: 1.0 References: <1725174.1651449765@sss.pgh.pa.us> <3953550.1663376882@sss.pgh.pa.us> <208054.1663534665@sss.pgh.pa.us> In-Reply-To: <208054.1663534665@sss.pgh.pa.us> From: Robert Haas Date: Mon, 19 Sep 2022 14:11:40 -0400 Message-ID: Subject: Re: Tree-walker callbacks vs -Wdeprecated-non-prototype To: Tom Lane Cc: Thomas Munro , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Sep 18, 2022 at 4:58 PM Tom Lane wrote: > BTW, I was distressed to discover that someone decided they could > use ExecShutdownNode as a planstate_tree_walker() walker even though > its argument list is not even the right length. I'm a bit flabbergasted > that we seem to have gotten away with that so far, because I'd have > thought for sure that it'd break some platform's convention for which > argument gets passed where. I think we need to fix that, independently > of what we do about the larger scope of these problems. To avoid an > API break, I propose making ExecShutdownNode just be a one-liner that > calls an internal ExecShutdownNode_walker() function. (I've not done > it that way in the attached, though.) I think this was brain fade on my part ... or possibly on Amit Kapila's part, but I believe it was probably me. I agree that it's impressive that it actually seemed to work that way. -- Robert Haas EDB: http://www.enterprisedb.com