From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Erik Rijkers <er(at)xs4all(dot)nl> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, Zhihong Yu <zyu(at)yugabyte(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, DUVAL REMI <REMI(dot)DUVAL(at)cheops(dot)fr>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: proposal: schema variables |
Date: | 2021-04-10 06:58:41 |
Message-ID: | CAFj8pRCi-n6SzkAB+OHG=TZvL13xxta_qgffBLDOY0HEBqDhvg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Hi
I am sending a strongly updated patch for schema variables.
I rewrote an execution of a LET statement. In the previous implementation I
hacked STMT_SELECT. Now, I introduced a new statement STMT_LET, and I
implemented a new executor node SetVariable. Now I think this
implementation is much cleaner. Implementation with own executor node
reduces necessary work on PL side - and allows the LET statement to be
prepared - what is important from a security view.
I'll try to write a second implementation based on a cleaner implementation
like utility command too. I expect so this version will be more simple, but
utility commands cannot be prepared, and probably, there should be special
support for any PL. I hope a cleaner implementation can help to move this
patch.
We can choose one variant in the next step and this variant can be
finalized.
Notes, comments?
Regards
Pavel
Attachment | Content-Type | Size |
---|---|---|
schema-variables-rev2-20210410.patch.gz | application/gzip | 69.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2021-04-10 07:20:34 | Re: Lots of incorrect comments in nodeFuncs.c |
Previous Message | Amit Kapila | 2021-04-10 04:21:03 | Re: Replication slot stats misgivings |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-04-12 05:01:17 | Re: [PATCH] force_parallel_mode and GUC categories |
Previous Message | Nagaraj Raj | 2021-04-09 18:22:17 | Re: INSERTS waiting with wait_event is "transactionid" |