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 1sQTC1-009zBc-FH for pgsql-general@arkaria.postgresql.org; Sun, 07 Jul 2024 14:48:45 +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 1sQTC0-00CvEb-2m for pgsql-general@arkaria.postgresql.org; Sun, 07 Jul 2024 14:48:44 +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 1sQTBz-00CvES-2W for pgsql-general@lists.postgresql.org; Sun, 07 Jul 2024 14:48:43 +0000 Received: from fout4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sQTBw-000tgD-9J for pgsql-general@postgresql.org; Sun, 07 Jul 2024 14:48:42 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 2192C13804C9; Sun, 7 Jul 2024 10:48:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 07 Jul 2024 10:48:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1720363718; x=1720450118; bh=Ux++AMx0V8ttLh56UQdZiJtNtS3abTUqmdy3uZoK9Is=; b= AzeoyHD4uaP5k4BvEZwD6X1hPImlc45V04OiOA0Vt2qQ5ngSGCdRF7eA94RcJOvW mbbzf93ietngaM3pMFUF84WBCnYVKprYUtgcPAtQIg1vV1UCYczM5guQMQowmM9R G6tFUbo89QpcdTsBCftMhlQttsSkZteqAG8AzgXrjn3Rw+RTCyXBzBiKDUN5PJY6 Z6/arobt7maksNBEHI7rphGJDIg8taIw7QbPlCIrkcNPN8FO03Jx6mQIP3OTQaRL DkNKzDBj0GwgPH75pTzRgpIHtphS5sEbv6KeSA8vruThoWFJufkZL/b17aYZRpN8 xp1R8QJCMT/bpZyqoPmNnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1720363718; x= 1720450118; bh=Ux++AMx0V8ttLh56UQdZiJtNtS3abTUqmdy3uZoK9Is=; b=a XzLmyQFTFNXnLVPkUb0wTITVrW+tUQwmwM22Wg4dpuv/3La6uqRxhzkYw6JucxKY m7CVAlPI/AiwAk5lk5EC9osDQ8xWi9HPFZ+ZNGEZqsIQzpDJoKkNm5DDQn1vlkBe miGiL/piWEkcVQOImVIY+XJYuQWday4LdA2iIQb8RBH8cojIHNQXu3tPDJPxHyYV /d/al78Dc2agYByOSSNrrSpbewn2CPVWQfzicIdDdkJsozhg/2Hqa9dOirgp1n4O wUgdCAFNcoYtDJfenFmyMsar0pUD+s6aLzz13twfZx9hCFPKWyKwY60kjIVs8a6f AB9JPQji3EsQB1dQdFKrg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefgheekjeehteeileeigfet ieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 7 Jul 2024 10:48:37 -0400 (EDT) Message-ID: <3f8781c5-d625-4f24-b96d-56a45a0dd257@aklaver.com> Date: Sun, 7 Jul 2024 07:48:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Declaring a field that is also an out parameter in a function To: Pavel Stehule , Michael Nolan Cc: Tom Lane , "pgsql-general@postgresql.org" References: <577338.1720304029@sss.pgh.pa.us> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/7/24 07:42, Pavel Stehule wrote: > I'm not sure why there's a warning about using an alias. 43.3.1 says > to use them for improved readability. > > > it is obsolete - aliases were used when Postgres doesn't support named > arguments. Is that was what it was complaining about or the fact they where declared and never used? > > I  don't know any good reason why one variable can use more than one name. Section 43.3.2. ALIAS provides the pros/cons. > > There can be an exception when argument names are very long, but > generally they are not used. > > > > Mike Nolan > -- Adrian Klaver adrian.klaver@aklaver.com