You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(17) |
Jun
(3) |
Jul
|
Aug
|
Sep
(8) |
Oct
(18) |
Nov
(51) |
Dec
(74) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(47) |
Feb
(44) |
Mar
(44) |
Apr
(102) |
May
(35) |
Jun
(25) |
Jul
(56) |
Aug
(69) |
Sep
(32) |
Oct
(37) |
Nov
(31) |
Dec
(16) |
2012 |
Jan
(34) |
Feb
(127) |
Mar
(218) |
Apr
(252) |
May
(80) |
Jun
(137) |
Jul
(205) |
Aug
(159) |
Sep
(35) |
Oct
(50) |
Nov
(82) |
Dec
(52) |
2013 |
Jan
(107) |
Feb
(159) |
Mar
(118) |
Apr
(163) |
May
(151) |
Jun
(89) |
Jul
(106) |
Aug
(177) |
Sep
(49) |
Oct
(63) |
Nov
(46) |
Dec
(7) |
2014 |
Jan
(65) |
Feb
(128) |
Mar
(40) |
Apr
(11) |
May
(4) |
Jun
(8) |
Jul
(16) |
Aug
(11) |
Sep
(4) |
Oct
(1) |
Nov
(5) |
Dec
(16) |
2015 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(5) |
May
(4) |
Jun
(12) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
(1) |
6
(1) |
7
(2) |
8
(3) |
9
|
10
|
11
(2) |
12
(6) |
13
|
14
(4) |
15
(6) |
16
(1) |
17
|
18
|
19
(5) |
20
(2) |
21
(3) |
22
(1) |
23
(4) |
24
(1) |
25
(5) |
26
(5) |
27
(2) |
28
|
29
(1) |
30
|
31
(1) |
|
|
|
|
|
|
From: Ashutosh B. <ash...@en...> - 2011-07-31 05:17:44
|
Hi Mason, Sorry for delay in replying. I was busy yesterday whole day. On Fri, Jul 29, 2011 at 6:36 PM, Michael Paquier <mic...@gm...>wrote: > > Great. Is this a general solution for multi-step queries, too? >> > No. I don't think so. Some more general solution for multi-step queries is > in study. > Mason did you mean multi-step or multi-statement queries. Let me bring up the difference here, Multi-step query means, the query involving multiple nodes in the plans - so even a query like "Select * from tab1 limit 5" is a multi-step query, since it has Limit->SeqScan plan. In the context of XC, a query can get reduced to a single RemoteQuery, thus a mutli-step query in XC means a query which can not be reduced to a single RemoteQuery. So, multi-statement queries are subset of multi-step queries. From this angle, PREPARE/EXECUTE support for multi-step queries is in place. So, answer to your question is Yes. For multi-statement queries, the answer is yes and no. There is some work going on about multi-statement queries, and till that finishes, we won't be able to confirm the support for PREPARE/EXECUTE OR for that matter any other clauses and variations of queries, which can involve multi-statement queries. But at the current state, the PREPARE/EXECUTE support for multi-statement queries is complete. We may not need much changes in this support unless multi-statement queries add their own parameters in the prepared statements. > >> Prepared statements are also related to stored function support. Is >> there any impact on support for that? >> > Nope. The only impact would be that there are less bugs than before in that > area :) > Let me give examples here create or replace function bound_param_func(a int) returns int language plpgsql as $$ declare b int; begin *select val2 into b from tab1 where val = a limit 1;* return b; end; $$; Earlier before 90 this used convert the SELECT query into a parameterised query with value of a passed as parameter. But starting 90 the local variables are not converted into parameters but they are handled by backend through language specific hooks. So, these kind of stored functions we don't need PREPARED query support. create or replace function bound_param_func(a int) returns int language plpgsql as $$ declare b int; begin execute '*select val2 from tab1 where val = $1 limit 1*' into b using a; return b; end; $$; The dynamic queries with parameters which have parameter values bound to them using "USING" clause, are still treated as PREPARED queries with bound parameters. Few examples I tried out are working as expected, so probably we have not problems in that area. But still I am looking at those, to see the things are kosher. Does that answer your question? If you know any other usages of PREPAREd statements and parameterised PREPARE statement, please let me know. I am looking for those. > > -- > Michael Paquier > http://michael.otacoo.com > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Enterprise Postgres Company |