Re: psql: add \create_function command

Поиск
Список
Период
Сортировка
Искать
От
walther@technowledgy.de
Тема
Re: psql: add \create_function command
Дата
Msg-id
52afb85b-35d9-4290-82cd-b8c95fda53c7@technowledgy.de
Ответ на
Список
Дерево обсуждения
psql: add \create_function command Steve Chavez <steve@supabase.io>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Tom Lane <tgl@sss.pgh.pa.us>
Re: psql: add \create_function command walther@technowledgy.de
Re: psql: add \create_function command "David G. Johnston" <david.g.johnston@gmail.com>
Re: psql: add \create_function command walther@technowledgy.de
Re: psql: add \create_function command Tom Lane <tgl@sss.pgh.pa.us>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Tom Lane <tgl@sss.pgh.pa.us>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Tom Lane <tgl@sss.pgh.pa.us>
Re: psql: add \create_function command Andrew Dunstan <andrew@dunslane.net>
Re: psql: add \create_function command Steve Chavez <steve@supabase.io>
Re: psql: add \create_function command Tom Lane <tgl@sss.pgh.pa.us>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Steve Chavez <steve@supabase.io>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Pavel Stehule <pavel.stehule@gmail.com>
Re: psql: add \create_function command Adam S <adam.sah@gmail.com>
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 по дате отправления
От: Jeff Davis
Дата:
От: walther@technowledgy.de
Дата:
FAQ