Re: psql: add \create_function command

Поиск
Список
Период
Сортировка
Искать
От
walther@technowledgy.de
Тема
Re: psql: add \create_function command
Дата
Msg-id
d61e45eb-d25e-42ab-b847-ce1c0183a2e0@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>
Pavel Stehule:
> looks a little bit obscure - why do you need to do it from psql? And how 
> frequently do you do it?

I store all my SQL code in git and use "psql -e" to "bundle" it into an 
extension, which is then deployed to production.

The code is spread over many files, which include other files via \ir. 
Sometimes you need to include other types of files, though - for example 
code in other languages as Steve mentioned, but I have also had cases 
for yaml files, markdown templates, even binary assets which should 
still be considered "code" and not data.

So anything in that direction would help.


В списке pgsql-hackers по дате отправления
От: walther@technowledgy.de
Дата:
От: Tristan Partin
Дата:
FAQ