Re: psql: add \create_function command - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: psql: add \create_function command
Date
Msg-id CAFj8pRCp=HNC7oNB33KDYcvU0wjBVp2z3HHoU16Ej_uDaBy+qg@mail.gmail.com
Whole thread Raw
In response to Re: psql: add \create_function command  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql: add \create_function command
List pgsql-hackers


pá 26. 1. 2024 v 21:17 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I don't know, maybe I have a problem with the described use case. I cannot
> imagine holding the body and head of PL routines in different places and I
> don't understand the necessity to join it.

It seems a little weird to me too, and I would vote against accepting
\create_function as described because I think too few people would
want to use it.  However, the idea of an easy way to pull in a file
and convert it to a SQL literal seems like it has many applications.

+1

Pavel


                        regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql: add \create_function command
Next
From: Adam S
Date:
Subject: Re: psql: add \create_function command