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 1ru0NR-001YY2-DB for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2024 01:34:21 +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 1ru0NQ-00FFUM-C9 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Apr 2024 01:34:20 +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 1ru0NQ-00FFRN-1j for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2024 01:34:20 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ru0NL-001v4F-EB for pgsql-hackers@lists.postgresql.org; Tue, 09 Apr 2024 01:34:18 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6ea23720da9so245493a34.2 for ; Mon, 08 Apr 2024 18:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712626455; x=1713231255; 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=CpWy5qj8nQth+2V75UrwDGRRRWT2Hwygr5T2H2OOwbw=; b=kyB1/rMBQfxE3aufJZgAQyyDgk+lKph8HVM0Abw7LWGUcQqZg+eUtojpIlEGt4w83F GxdKwSB5h2u06FZBd/KiaEihRYu1mWKvmrA6SIB17MIJYlCb8GNb+7Nru5UKXi4eB6IE yaUzrcQCPpw6PZw0kkqSEX6+ZdPcd7M2HNZu8VuqzTxjoQQ+0EKPtePes+udaHa1lk/F g33z99qbX+8/96Dg1EOcCFXAj7DVRSiobc/UvyMRd4QFrPvU6Wh01mGw5qcJxEzj1jNK uWZC823soeBhvU1ReuDcfaXiTKKfUmhniTid2gVmRz7hCTRv+HdX3oPHKCLlsQmXfXbp BraA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712626455; x=1713231255; 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=CpWy5qj8nQth+2V75UrwDGRRRWT2Hwygr5T2H2OOwbw=; b=s3lIFq0ZUWJ7ChSYUYz+xoiyoxnq2askCgHxY+edynCBHIaVb8SIzyKgeAitvbV+K2 HM8VuJs+73MC56iwnF0Z2Q6Oz20SchoIrR2QJDP0X5VN3uxySQ0nhTzlieLE+bjNyiZV toeVNPhNelHrEW+Pp9868TQtlDbtLORbvN2jqDtiq/Lr/ji2YLxKAxCBHHNeuu1Uqteh tM/Avpl2PCuEHRdznpbwTlIghZvy9KsjqX5YQevKGH/WtZn8tHY4ykmaEbsEDkkaK4qC mK1TzA3HyHbzZ8lWcDEdAWwlev9yr+vVsof1WXy8iO/FRLlk1WYk+7UsjMBn93C2nqW0 2B2A== X-Gm-Message-State: AOJu0Yx0j8OCLuoQAJrmDCsdxn0dZi7NRn9zEFoGJJMjk11dQHf7TEX2 eDzgQcCjVbjeMfpHr3UY7dEDRVbxHU30d5ct1H34YMRhDrddBj0n X-Google-Smtp-Source: AGHT+IGmxxHQBhGJsM9LMJfuEXIsrFtAHO+5y1/zUmAtJZOWkCAU67NfM/oc+dPrwJpr1KazA08Dpw== X-Received: by 2002:a05:6871:152:b0:22e:d514:470b with SMTP id z18-20020a056871015200b0022ed514470bmr9371677oab.39.1712626454727; Mon, 08 Apr 2024 18:34:14 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ay22-20020a056638411600b0047ecf279b90sm2912974jab.128.2024.04.08.18.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 18:34:14 -0700 (PDT) Date: Mon, 8 Apr 2024 20:34:12 -0500 From: Nathan Bossart To: David Rowley Cc: PostgreSQL Developers Subject: Re: Fixup some StringInfo usages Message-ID: <20240409013412.GA1431559@nathanxps13> References: 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 Tue, Apr 09, 2024 at 12:53:21PM +1200, David Rowley wrote: > Similar to f736e188c, I've attached a patch that fixes up a few > misusages of the StringInfo functions. These just swap one function > call for another function that is more suited to the use case. > > I've also attached the patch that I used to find these. That's not > intended for commit. > > I feel like it's a good idea to fix these soon while they're new > rather than wait N years and make backpatching bug fixes possibly > harder. > > I've attached a file with git blame commands to identify where all of > these were introduced. All are new to PG17. > > Any objections? Looks reasonable to me. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com