Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions - Mailing list pgsql-general

From David G. Johnston
Subject Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions
Date
Msg-id CAKFQuwarhk+tg0iJVekT8FENSjhTBXhvVmbep6kWVrUzd1naaA@mail.gmail.com
Whole thread Raw
In response to Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions  (Ron Johnson <ronljohnsonjr@gmail.com>)
Responses Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions
List pgsql-general
On Tue, Jun 18, 2024 at 10:07 AM Ron Johnson <ronljohnsonjr@gmail.com> 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.

David J.

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Seeking Clarification on Function Definitions in PostgreSQL Extensions
Next
From: Wiwwo Staff
Date:
Subject: Re: HISTIGNORE in psql