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 1sQTBS-009z9V-Cc for pgsql-general@arkaria.postgresql.org; Sun, 07 Jul 2024 14:48: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 1sQT6K-00Cngc-4o for pgsql-general@arkaria.postgresql.org; Sun, 07 Jul 2024 14:42:52 +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 1sQT6J-00CngU-Ph for pgsql-general@lists.postgresql.org; Sun, 07 Jul 2024 14:42:51 +0000 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sQT6D-000tcz-Cc for pgsql-general@postgresql.org; Sun, 07 Jul 2024 14:42:51 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-65651296d91so4980187b3.3 for ; Sun, 07 Jul 2024 07:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720363364; x=1720968164; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=M2KIcXzCJSijl7CDWZ5K/nSSFcglKl7eRH2psHnCabo=; b=EKgvEsr/IgJTGqnssh0z/f+MoHNw1ZZjtxjacCEeN2CGT1b21fd13MvtgsXYR+RjP9 w2c1clH62m9ilxZXQKRPpo9QibmdFYd2VTQynYtZiadUjB71eUSSZ28QU+2YywQrFVue bDG/D+viEwlzU1fKhw67iVzMWHQmOm9dsUx/xjJfE/C9Nk4oPeG3iuAHmlXnnvkTYGXf mwv1AZzmxvGiDfGMgiHvQytY4ADM4pTpLpauoWOYFflQPkwk7JmtSCQ+wEzkyIFvoUzr dCYlFGesslA579cJHhWYIK6OeP2CiCkEPv5bwdWTTlZ015raI0qesFQfHFEWLyV5bEax qa2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720363364; x=1720968164; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M2KIcXzCJSijl7CDWZ5K/nSSFcglKl7eRH2psHnCabo=; b=uw5yU/IvrH72CSpWuA+drAPmiIt7b8pBqB+mZTSQH5bKgHOOT4E7QO4kDukE7y1/M/ Fbs4JpELnUg7da7WsjabLvifbsU3zfLKo0/sbOENWVhrsrlllF9fqWyPQDuhE0zWu5ex CgzHULh0VKRdL/YpMyFnNyi72G/r5ZxR0yavjP71PJhfhaekirYOLFsoXujGdF8kysOr Oc6rK0cg6iK5UbhrLBcuuu9gjs/r0F6K2W6BeIygPdd+iY8foAff01PYUr2xfy/ouVeY MKKw/f/TTQ/hb921OFku45jS6Vn7Sf6FaxapRf8ivr5WjqeOB7PhH5Nfv3MfCobqT76S jXSQ== X-Forwarded-Encrypted: i=1; AJvYcCXEgxRZ2zkM7DvofbwQQ8JL55I13r6l1YH/bUGLLBAEpKHsKuOwI6HIQIzvrdArAbcgUW7xLTXnUmiZz1Jf7oeBP54xkDlmfvxZqB5Z X-Gm-Message-State: AOJu0YzIzoeTCgH65Gg1caBy3LA7mgoHBbAiQcXW0t9nViLWLoNXxzri dAUAa7D6owW9AubyI/8ZjjW6x3bcZ6rOO6R7IIoblb/Ewfj3uJhPYlz+1k94sNXRtmSD0HOH/0R I2Ko2q8Gs2lW/KGv2oJwmieGE7nQ= X-Google-Smtp-Source: AGHT+IFheR+lHSxcWJEKcNfW4uQDFpQhftS1HMellWDy7xRuY1FbN8BRqH79Qf/6LqiCSxEfknx6IE5xh/yrPOn63L0= X-Received: by 2002:a05:690c:f07:b0:648:3f93:6933 with SMTP id 00721157ae682-652d812f398mr120212447b3.48.1720363363773; Sun, 07 Jul 2024 07:42:43 -0700 (PDT) MIME-Version: 1.0 References: <577338.1720304029@sss.pgh.pa.us> In-Reply-To: From: Pavel Stehule Date: Sun, 7 Jul 2024 16:42:07 +0200 Message-ID: Subject: Re: Declaring a field that is also an out parameter in a function To: Michael Nolan Cc: Tom Lane , "pgsql-general@postgresql.org" Content-Type: multipart/alternative; boundary="0000000000002eb364061ca94fbe" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002eb364061ca94fbe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ne 7. 7. 2024 v 15:01 odes=C3=ADlatel Michael Nolan naps= al: > On Sun, Jul 7, 2024 at 4:13=E2=80=AFAM Pavel Stehule > wrote: > > > > but looks so there are false alarms related to using an alias. It is > interesting so I have not any report about this issue, so probably using > aliases is not too common today. > > 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. I don't know any good reason why one variable can use more than one name. There can be an exception when argument names are very long, but generally they are not used. > > Mike Nolan > --0000000000002eb364061ca94fbe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
ne 7. 7. 2024 v=C2=A015:01 odes=C3=AD= latel Michael Nolan <htfoot@gmail.co= m> napsal:
pavel.stehule@gmail.com>= ; wrote:
>
> but looks so there are false alarms related to using an alias. It is i= nteresting so I have not any report about this issue, so probably using ali= ases is not too common today.

I'm not sure why there's a warning about using an alias. 43.3.1 say= s
to use them for improved readability.

i= t is obsolete - aliases were used when Postgres doesn't support named a= rguments.

I=C2=A0 don't know any good reason w= hy one variable can use more than one name.

There = can be an exception when argument names are very long, but generally they a= re not used.

=C2=A0

Mike Nolan
--0000000000002eb364061ca94fbe--