Re: [HACKERS] proposal: schema variables
От | Pavel Stehule |
---|---|
Тема | Re: [HACKERS] proposal: schema variables |
Дата | |
Msg-id | CAFj8pRBfb-GTZSHSRVTpMzGr26-7e-_RmOmRpmuk+xuDTgC=mA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] proposal: schema variables (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: [HACKERS] proposal: schema variables
Re: [HACKERS] proposal: schema variables |
Список | pgsql-hackers |
Hi
I wrote proof concept of schema variables. The patch is not nice, but the functionality is almost complete (for scalars only) and can be good enough for playing with this concept. 6. multiple API available from different environments - SQL commands, SQL functions, internal functions
7. data are stored in binary form
DO $$
declare x int = random() * 1000;
BEGIN LET foo = x + 100;
END;$$;
SELECT public.foo + 10;
SELECT * FROM data WHERE col = foo;
Regards
Pavel
Вложения
В списке pgsql-hackers по дате отправления: