Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan
Дата
Msg-id
CAHyXU0xVhtn0nSi3u_70SEB=6TJrQAGb2T_rS9P_SBFW4O4P6Q@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Greg Stark <stark@mit.edu>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan David Steele <david@pgmasters.net>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or genericplan Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: PoC plpgsql - possibility to force custom or genericplan Andres Freund <andres@anarazel.de>
Re: PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: PoC plpgsql - possibility to force custom or genericplan Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: PoC plpgsql - possibility to force custom or genericplan Andres Freund <andres@anarazel.de>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or genericplan Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Daniel Gustafsson <daniel@yesql.se>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Merlin Moncure <mmoncure@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Andres Freund <andres@anarazel.de>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Andres Freund <andres@anarazel.de>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or genericplan Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Daniel Gustafsson <daniel@yesql.se>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Merlin Moncure <mmoncure@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PoC plpgsql - possibility to force custom or generic plan Pavel Stehule <pavel.stehule@gmail.com>
On Fri, Sep 8, 2017 at 2:48 PM, Pavel Stehule  wrote:
>
>
> 2017-09-08 21:21 GMT+02:00 Daniel Gustafsson :
>>
>> > On 08 Sep 2017, at 19:14, Simon Riggs  wrote:
>> >
>> > On 6 September 2017 at 07:43, Robert Haas  wrote:
>> >
>> >> LET custom_plan_tries = 0 IN SELECT ...
>> >
>> > Tom has pointed me at this proposal, since on another thread I asked
>> > for something very similar. (No need to reprise that discussion, but I
>> > wanted prepared queries to be able to do SET work_mem = X; SELECT).
>> > This idea looks a good way forward to me.
>> >
>> > Since we're all in roughly the same place, I'd like to propose that we
>> > proceed with the following syntax... whether or not this precisely
>> > solves OP's issue on this thread.
>> >
>> > 1. Allow SET to set multiple parameters...
>> > SET guc1 = x, guc2 = y
>> > This looks fairly straightforward
>> >
>> > 2. Allow a SET to apply only for a single statement
>> > SET guc1 = x, guc2 = y FOR stmt
>> > e.g. SET max_parallel_workers = 4 FOR SELECT count(*) FROM bigtable
>> > Internally a GUC setting already exists for a single use, via
>> > GUC_ACTION_SAVE, so we just need to invoke it.
>>
>> This syntax proposal makes sense, +1.  My immediate thought was that the
>> per-statement GUCs were sort of like options, and most options in our
>> syntax
>> are enclosed with (), like: SET (guc1 = x, guc2 = y) FOR SELECT ..;
>
> we newer support this syntax in combination with SET keyword
>
> see - CREATE FUNCTION command
>
> personally I prefer syntax without FOR keyword - because following keyword
> must be reserved keyword
>
> SET x = .., y = .. SELECT ... ;

This seems pretty ugly from a syntax perspective.

We already have 'SET LOCAL', which manages scope to the current
transaction.  How about SET BLOCK which would set until you've left
the current statement block?

merlin


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата:
От: Tom Lane
Дата:
FAQ