Add currval() and lastval() to black_function_list. If they are load
authorTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 11 May 2011 01:51:36 +0000 (01:51 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 11 May 2011 01:51:36 +0000 (01:51 +0000)
balanced, currval() or lastval() may be called before the result of
nextval() or setval() is propagated to slaves.

pgpool.conf.sample-master-slave
pgpool.conf.sample-stream

index 1e6f696951713d340d4a6c1b7be63feef72f856a..2f350ae51fdeb028cdf7844f891071ebb91d6736 100644 (file)
@@ -222,7 +222,7 @@ ignore_leading_white_space = on    # Ignore leading white spaces of each query
 white_function_list = ''           # Comma separated list of function names
                                    # that don't write to database
                                    # Regexp are accepted
-black_function_list = 'nextval,setval'
+black_function_list = 'currval,lastval,nextval,setval'
                                    # Comma separated list of function names
                                    # that write to database
                                    # Regexp are accepted
index e03cb8423bc480cb834277386e09384920f32332..742f97e1dbad480abfacc534871a069125330ea0 100644 (file)
@@ -223,7 +223,7 @@ ignore_leading_white_space = on    # Ignore leading white spaces of each query
 white_function_list = ''           # Comma separated list of function names
                                    # that don't write to database
                                    # Regexp are accepted
-black_function_list = 'nextval,setval'
+black_function_list = 'currval,lastval,nextval,setval'
                                    # Comma separated list of function names
                                    # that write to database
                                    # Regexp are accepted