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 1ppxcu-00053Z-Iu for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 20:45:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppxct-0007Vz-H2 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 20:45:03 +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 1ppxct-0007Vi-8E for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 20:45:03 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ppxcm-004IxG-EY for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 20:45:02 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-51b4ef5378bso2556550a12.1 for ; Fri, 21 Apr 2023 13:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682109894; x=1684701894; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NF1xWAGGcIqBzON4/eTWQ5mvj2C9s8BoBJFUHUzSQUA=; b=g6ydgzwTIUzOUd66ow5cyqUDonPex2uEbNUUSi8gM1tOdv3US7keQG713FCp6KbAir 3VRP+rTTnw/g++vZJwb/X7h6RLmo9R8bGpQ9cClMgTRaONfYOSeT3jrho1mjPTzqnGRN 12601GxjI+E+FiqPCV+/ccoRn8VjGsD9WQEvWyktRsVivEElGsHWxxV4bq9eXn7PffO0 IBAwgKb5sbr1W5bQTTPTSlYeUqnAGwcTbbSiRLNw89uFYuNq7B8Mxc+r7cz1HQr2/ht/ azjPz4NG4qxtAwVTu3VDn7W5jQ06cd91U3DFrelTj1OdpNXwzj2bnh3JyIWHqKE4BqKo bIWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682109894; x=1684701894; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NF1xWAGGcIqBzON4/eTWQ5mvj2C9s8BoBJFUHUzSQUA=; b=MeSYOaGfv8Rt/dHe5B8IVEtpXtakrCik50LE3UNiBfsAtvA+GbjY7651Cwl9OKnLAf dDrQ5nbfiMb7YOD4wdDGYDN3QymqirLevC38uPYOB5WjJC6fIzzGiZqTxJbjzJ200HjL 6GlH8bBGZUcGIzA43bhrl01RaXK4bhpL9XmLKAk/7dtc58yVn8g8FZskoeJVAmXW7pNG ZFEvXxQax2k6NPwgQbIwkxT3YvoTR/QJF+vF3PuvSyF7r24jeuRaVzjqoONK2cxLgx4N HzKIJF/GSV89I3DmMB980Exn6OF9QZfqmQr14CNrWNC0JZecqw9A0hfXHs1ps7YlCJ7/ DRnQ== X-Gm-Message-State: AAQBX9fWIwmWT7RK0BCZSyv5ymgK1zdjWcJ0HcTfkhmTs6zf6QLvOCYG ibg8E/F4vUTcUE5OiViPE8s= X-Google-Smtp-Source: AKy350YQRVBhlOZIPtiRepCK/9plDmXiOvj4dDY3hdu94pbt5qk5iNF5d7q4kPudLLWjUySAQHbX9w== X-Received: by 2002:a17:902:d590:b0:1a5:2540:729 with SMTP id k16-20020a170902d59000b001a525400729mr6219831plh.56.1682109894149; Fri, 21 Apr 2023 13:44:54 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id c13-20020a170902c1cd00b001a6d4ffc760sm3095652plc.244.2023.04.21.13.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 13:44:53 -0700 (PDT) Date: Fri, 21 Apr 2023 13:44:51 -0700 From: Nathan Bossart To: Daniel Gustafsson Cc: Yurii Rashkovskii , pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Extend the length of BackgroundWorker.bgw_library_name Message-ID: <20230421204451.GC1440148@nathanxps13> References: <20230313173528.GA195204@nathanxps13> <20230420233243.GB1437940@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Apr 21, 2023 at 10:49:48AM +0200, Daniel Gustafsson wrote: > On 21 Apr 2023, at 01:32, Nathan Bossart wrote: >> I am -0.5 for this. If you are writing a new background worker, it's >> probably reasonable to expect that you can locate the definition of >> BGW_MAXLEN. > > Of course. The question is if it's a helpful addition for someone who is > reading the documentation section on implementing background workers where we > explicitly mention BGW_MAXLEN without saying what it is. IMHO it's better to have folks use the macro so that their calls to snprintf(), etc. are updated when BGW_MAXLEN is changed. But I can't say I'm strongly opposed to adding the value to the docs if you think it is helpful. >> Also, I think there's a good chance that we'd forget to update >> such documentation the next time we adjust it. > > There is that, but once set to MAXPGPATH it seems unlikely to change > particularly often so it seems the wrong thing to optimize for. True. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com