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 1sJd2n-005wtF-Pd for pgsql-general@arkaria.postgresql.org; Tue, 18 Jun 2024 17:54:57 +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 1sJd2k-0001EV-9t for pgsql-general@arkaria.postgresql.org; Tue, 18 Jun 2024 17:54:55 +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 1sJd2j-0001EN-Uv for pgsql-general@lists.postgresql.org; Tue, 18 Jun 2024 17:54:54 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sJd2h-002K53-Uw for pgsql-general@lists.postgresql.org; Tue, 18 Jun 2024 17:54:54 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-2598f517a33so294184fac.1 for ; Tue, 18 Jun 2024 10:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718733289; x=1719338089; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=wG9tV2Es8cFF1kWQqWib1PNZFmf2EOxk6XpYNPZgB7Y=; b=IPYheFWA9uHCjbWl7/19boBDl1DkKvYGQHfOERUt9miCKvQlfK1xAzGGZ1IrEnnah5 sy2EaTkgs4wkqyzf9vOKjT/4E9TplSGIDUfVQTHx+iy5SgqXXmZXTbl5qNjemIgG9q3D JUYWwgA3BLBtybOKXBjCIayquSybtnbnO87VHJIGzZis1Tjlw65/JK2FkuAVQAybl43W JKyoyk3SpxOvnzI975OgQ6hJV5jdx18gee+cJGyGhzoWM+DTr6eIPBeATNHOSKP9PpuQ nNvS6YJjo/4KNvfXRmGD75mG8u3umOwAD/QoiyLs9mj4FsmaBj6UI9iXB62X7KJ/Xi1s 7maA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718733289; x=1719338089; h=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=wG9tV2Es8cFF1kWQqWib1PNZFmf2EOxk6XpYNPZgB7Y=; b=nhHOYBjksUHX4ZHoN2y65TpXqCiZJGlQDkP58bm8zxl923HX4AtPIlLA9JRAadQI/a KPS1EEFAfMEIs495A+fJ5nMFxw6b/oQwxFnRwivS7sMhJ4jk9ZGbaboCJ/wUgPH5Nyhb xMcbV6KtIhmw41cdaZ1uBOvtjX1N/QTBtnEOVB5B67RUhr2+JQmpPRWPbpf6f+8hK00T 4VUtDcqQD/jC37PfMBq/RuQykVPZJtDyaeCjh1w4y31g+w96081gOH4uwhWxIBdIQSIt Qj+fCtaAnacL39b8qo7ZzvB4vOMNHmrUnDqJfg2/I2Too4+2VTJBYkJBaNxnJkGF3Q4Y /OAw== X-Gm-Message-State: AOJu0YxIyQIG73QV8aBMo8AqZTSaALI38PugZx9c65s/ixyOWzJHj7DF DmYT6Kmkv8gQKflxfBCch1p5ADF4Pdvdn3MozTnc3oIoU8mSCFSCGxl2nCOZxXXJdAOKeyBPUuO h8E99+LbQw/gKKQ6e1Qm74DTBWNZMmQ== X-Google-Smtp-Source: AGHT+IEdv/iaiziQfjegszZGaz8Z9aanPjQm5dhGo5dSOSe7/VnPm3XsNVc/B0VFTpYwrogx8kQY9VZ403qWnliD6yI= X-Received: by 2002:a05:6870:9726:b0:258:456f:2fa5 with SMTP id 586e51a60fabf-25c94901dc4mr648710fac.7.1718733289082; Tue, 18 Jun 2024 10:54:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Tue, 18 Jun 2024 13:54:37 -0400 Message-ID: Subject: Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000028d6f7061b2dc7ef" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000028d6f7061b2dc7ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 18, 2024 at 1:16=E2=80=AFPM David G. Johnston < david.g.johnston@gmail.com> wrote: > On Tue, Jun 18, 2024 at 10:07=E2=80=AFAM Ron Johnson > wrote: > >> fun2 puzzles me. Why would you return parameters AND *a single record* = (unless >> it's an error status). >> > > You mis-understand what 2 is doing. You should go re-read the docs for > create function again. Especially the description of rettype. > That's true. I've even used "RETURNS SETOF record" before. But I stand by returning OUT params and records at the same time. --00000000000028d6f7061b2dc7ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jun 18, 2024 at 1:16=E2=80=AFPM D= avid G. Johnston <david.g.= johnston@gmail.com> wrote:
On Tue, Jun 18, 2024 at 10:07=E2=80= =AFAM Ron Johnson <ronljohnsonjr@gmail.com> wrote:
fun2 puzzles=C2=A0me.=C2=A0 Why would you return paramete= rs AND a single record=C2=A0(unless it's an error status).

You mis-understand what 2 is doing.=C2=A0 You should go re= -read the docs for create function again.=C2=A0 Especially the description = of rettype.

That's tr= ue.=C2=A0 I've even used "RETURNS SETOF record" before.
=

But I stand by returning OUT params and records at the = same=C2=A0time.
--00000000000028d6f7061b2dc7ef--