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 1qr7sQ-002gQT-IN for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Oct 2023 02:26:10 +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 1qr7sN-00DNVR-HE for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Oct 2023 02:26:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qr7sN-00DNUr-6h for pgsql-hackers@lists.postgresql.org; Fri, 13 Oct 2023 02:26:07 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qr7sJ-000H5y-9E for pgsql-hackers@lists.postgresql.org; Fri, 13 Oct 2023 02:26:07 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-35749556444so7119115ab.1 for ; Thu, 12 Oct 2023 19:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697163962; x=1697768762; darn=lists.postgresql.org; 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=b/vmgbxmANRmShQbvqWUNqPQcOnqNOdgc/EWKLalEH4=; b=HSFRvqXyqI+b/Sr5xuGSE4MOFJGYQh/D7FqWSzkQ6qFqapfIeBL+aDCMeznfXAhH77 hMvkbbbmgNFSeNFpY3bT8AbmQ7PQBP3MMPrNqvYO1Izc5+zaiuXkwBmduuiRPIbiA1jH Uc5YowjHLbPj+4YFa/cwjCx6c8I8+9XU/9D+32P9+aeB4bUlnZbyJf0F9exdU6H7LlNl vV8ttfaPKmhiOc5fPrJG9+pJbvPe3sR2WDCcw3LVwXsy7wRuh8k4KMvi6mFv1UL8uZ2h jQLJsva9ITrWydtTvzYhwm+x22f7c77MMePRjB4Mgg/ZFQDWBbv8FTNziXn8u2pdPNQh Iyig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697163962; x=1697768762; 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=b/vmgbxmANRmShQbvqWUNqPQcOnqNOdgc/EWKLalEH4=; b=OCBuzjNqihUVPeOxwPJMuxflEMt8QjIBPRbtMG3jchbmZXC6gBLkvGFcnrZhqr3p7w bHfWdVOG8Iek7yM22TL1yu5E4nrO3t8CqVXwK53dDtFdQRZW2KMBdzBx6IvBu/iYGQ4D kNecpWZRZN+/jyl3cfI8CQBJNvHO1ykpSX8zB7lcHfny/HFB7sBu9zZPTWLJUzkEuMVg PS06kC0w4dQJnz75jj+/isJnq7mwVMtILJHiz08PZSYiXJgZKbUJjbSQTGYFOwMrA9eN Xgygt2p/sUJY9Q8khe9MHDp1Q51ER2YK8ArtuVmp4Fa1JPGYIwq71ZNnUUEV3joHPwPQ x+WA== X-Gm-Message-State: AOJu0Yy6Oag4SNha7+7rM3eji0/QuVhuJe5/5pUu9yFS1L1fgbbCVArW LYWlVaxnMmMnlQRUpzPnmDLI8U/Bsxg= X-Google-Smtp-Source: AGHT+IHfR5om840aSfU3k10xzZV1QGrOuUqlSy1CuXJsUPkewKS7GexjPRN5jLO0YGiKTnH2lFKVeQ== X-Received: by 2002:a05:6e02:df0:b0:349:8447:241d with SMTP id m16-20020a056e020df000b003498447241dmr16629130ilj.9.1697163962195; Thu, 12 Oct 2023 19:26:02 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id t12-20020a92c90c000000b0035265088c52sm1062515ilp.34.2023.10.12.19.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 19:26:01 -0700 (PDT) Date: Thu, 12 Oct 2023 21:25:59 -0500 From: Nathan Bossart To: Daniel Gustafsson Cc: bt23nguyent , Alvaro Herrera , pgsql-hackers@lists.postgresql.org Subject: Re: Improve the log message output of basic_archive when basic_archive.archive_directory parameter is not set Message-ID: <20231013022559.GA1266364@nathanxps13> References: <202309151049.dmfsxc5b3wyf@alvherre.pgsql> <7035FAFE-7E91-4B31-AA72-75EE82DB3F7B@yesql.se> <20230915143827.GA1912920@nathanxps13> <85b9e69997bbd5d8302a3a99a2de246d@oss.nttdata.com> <18cbd8ca6f5390cda2920644f891a419@oss.nttdata.com> <20230925222047.GA3173226@nathanxps13> <482056B1-D930-417C-9473-CB1A045E42AE@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <482056B1-D930-417C-9473-CB1A045E42AE@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 26, 2023 at 08:13:45AM +0200, Daniel Gustafsson wrote: >> On 26 Sep 2023, at 00:20, Nathan Bossart wrote: >> >> On Thu, Sep 21, 2023 at 11:18:00AM +0900, bt23nguyent wrote: >>> -basic_archive_configured(ArchiveModuleState *state) >>> +basic_archive_configured(ArchiveModuleState *state, char **logdetail) >> >> Could we do something more like GUC_check_errdetail() instead to maintain >> backward compatibility with v16? > > We'd still need something exported to call into which isn't in 16, so it > wouldn't be more than optically backwards compatible since a module written for > 17 won't compile for 16, or am I missing something? I only mean that a module written for v16 could continue to be used in v17 without any changes. You are right that a module that uses this new functionality wouldn't compile for v16. But IMHO the interface is nicer, too, since module authors wouldn't need to worry about allocating the space for the string or formatting the message. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com