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

From walther@technowledgy.de
Subject Re: psql: add \create_function command
Date
Msg-id 52afb85b-35d9-4290-82cd-b8c95fda53c7@technowledgy.de
Whole thread Raw
In response to Re: psql: add \create_function command  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane:
> Or we could cut out the intermediate variable altogether
> by inventing something that works like :'...' but reads
> from a file not a variable.  That might be too specialized
> though, and I'm not sure about good syntax for it either.
> Maybe like
> 
> CREATE FUNCTION foo() RETURNS whatever AS :{source_file.txt} LANGUAGE ...;

That would indeed be very useful! I would immediately use this in a lot 
of places.



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Improve WALRead() to suck data directly from WAL buffers when possible
Next
From: walther@technowledgy.de
Date:
Subject: Re: psql: add \create_function command