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
(10) |
2
(18) |
3
(1) |
4
|
5
(15) |
6
(16) |
7
(11) |
8
(17) |
9
(7) |
10
(6) |
11
(1) |
12
(6) |
13
(4) |
14
(8) |
15
(3) |
16
(3) |
17
|
18
|
19
(8) |
20
(10) |
21
(12) |
22
(5) |
23
(3) |
24
|
25
|
26
(2) |
27
(2) |
28
(1) |
29
(2) |
30
(5) |
31
(1) |
From: Ashutosh B. <ash...@en...> - 2013-08-07 08:42:29
|
On Wed, Aug 7, 2013 at 1:57 PM, Koichi Suzuki <koi...@gm...> wrote: > Hi; > > > 2013/8/6 Ashutosh Bapat <ash...@en...> > >> Hi All, >> I worked on this (patch attached) but I didn't see any performance >> improvement. In fact, to my surprise the performance actually dropped. >> >> On a true cluster, with 5 coordinators and 5 datanodes, I saw these >> numbers with 1000000 rows in a table with two integer columns. The times >> are average times required for 100 runs of the same query, returning whole >> rows ordered by one of the columns. >> No ORDER BY push-down - 1640 ms >> ORDER BY push-down using Sort plan - 1100 ms (this is the current >> implementation) >> ORDER BY Push-down using MergeAppend plan - 1170 ms >> >> The assumption behind trying this out was explained in my earlier mail in >> this thread. But it looks like we do not get any improvement. >> >> One of the possible reasons, I think, is involvement of multiple >> RemoteQuery nodes in MergeAppend plan. While executing MergeAppend plan, >> the ExecProcNode() is called on the underlying node, one after the other. >> For every RemoteQuery node in MergeAppend plan it waits till that node >> emits a row. This means that we do not execute the queries on datanodes in >> parallel when executing through MergeAppend plan unlike Sort plan where >> there is only one RemoteQuery node involved. >> >> In order to get full advantage of MergeAppend plan (and keep the code >> clean), I think we need to query the datanodes in parallel somewhere >> outside ExecProcNode(). Thoughts? Suggestions? >> > > Can we divide MergeAppend execution into two stage, one is just to issue a > query and then begin to receive rows. Because this is a change in the > core, we should submit the idea, the usecase and the code to PG community. > > This can be done if we move "issueing query" inside ExecInitRemoteQuery, but I am not sure if that can be applied in all the cases. This wouldn't require any change in PG. > Regards; > --- > Koichi Suzuki > > >> >> On Fri, May 24, 2013 at 1:30 AM, Ashutosh Bapat < >> ash...@en...> wrote: >> >>> Hi All, >>> While I hear Robert's presentation on query planning go wrong, I heard >>> (first time) about MergeAppend plan. It looks like, we have something >>> better to do with the way we are pushing the ORDER BY clauses and doing >>> merge at the coordinator. Right now we are using Sort node and in ExecSort >>> we start merging the rows. Instead, I think we should be using MergeAppend >>> node. The only bad thing about this approach is MergeAppend node expects >>> separate plans for each run of the sorted data. To do this, we need to >>> replicate the RemoteQuery node as many times as there are nodes and put >>> them in the list to the MergeAppend plan. I think that's going to solve the >>> problem with materialisation (see mail thread "Using remote sorting for >>> merge-join") and thus improve performance. It also takes away the need to >>> have xc_node_id in the tupleslot of tuplestore. Obviously, simplifying the >>> code. >>> >>> Any comments? >>> >>> Created 3613815 >>> <https://sourceforge.net/tracker/?func=detail&aid=3613815&group_id=311227&atid=1310232>and >>> assigned to me. >>> <https://sourceforge.net/tracker/?func=detail&aid=3613815&group_id=311227&atid=1310232> >>> >>> On Mon, Dec 3, 2012 at 3:44 AM, Ashutosh Bapat < >>> ash...@en...> wrote: >>> >>>> On Fri, Nov 30, 2012 at 9:37 AM, Michael Paquier >>>> <mic...@gm...> wrote: >>>> > Hi Ashutosh, >>>> > >>>> > Thanks for the patch. >>>> > I found for the time being the following problems: >>>> > 1) The patch has some whitespaces >>>> > /home/michael/download/xc_sort.patch:16: trailing whitespace. >>>> > >>>> > /home/michael/download/xc_sort.patch:34: trailing whitespace. >>>> > >>>> > /home/michael/download/xc_sort.patch:307: trailing whitespace. >>>> > return local_plan_left; >>>> > /home/michael/download/xc_sort.patch:356: trailing whitespace. >>>> > >>>> > /home/michael/download/xc_sort.patch:360: trailing whitespace. >>>> > >>>> >>>> Fixed. >>>> >>>> > error: patch failed: src/include/pgxc/execRemote.h:95 >>>> > 2) the patch does not apply cleanly even by using "patch -p1"-like >>>> commands >>>> >>>> When I sent the patch (more than a week before you replied) it was >>>> based on the HEAD, but then there were some commits which created the >>>> conflicts. The one attached should apply. >>>> >>>> > 3) No documentation about the new option enable_remotesort. >>>> > 4) enable_remotesort is not listed in postgresql.conf. >>>> > Please provide both documentation and reference in >>>> postgresql.conf.sample >>>> > for transparency of the code. As an open source project it is >>>> important to >>>> > classify all the options available, for both the user and the >>>> developers. >>>> >>>> Added although, I still don't approve of it myself. >>>> >>>> > 5) What is cruelly missing with this patch are numbers. By how much >>>> this >>>> > feature improves performance? >>>> > Simple tests like a ORDER BY on a table with millions of rows would be >>>> > enough, but as this is a performance feature, you should provide data >>>> about >>>> > how much those cases are improved. >>>> > 6) A complain that I say for each planner-related patch in this >>>> project.... >>>> > This patch has a size of 200KB, 65% being updates on the EXPLAIN >>>> queries of >>>> > the XC query planning regression tests. This makes the commit tree >>>> > unreadable and the evolution of the regression tests realy hard to >>>> follow >>>> > because they need to be modified each time a planner optimization is >>>> > introduced. We should move to a set of tests which is far more >>>> > code-modification proof! >>>> >>>> This is planner code, so it's going to affect the plans that it >>>> creates. In the test files we add EXPLAIN (with proper switches) to >>>> check 1. whether the plans are coming as expected at that stage of >>>> development, 2. Whether the clauses expected to be pushed down are >>>> being indeed pushed down 3. the queries to be sent to the datanodes >>>> are being crafted correctly. For every planner change, all the three >>>> things above change, for the operation being planned and hence the >>>> expected output changes are unavoidable. In fact, if you look at how >>>> the expected output changing you get a idea of how correctly/wrong the >>>> planner changes are made. Those diffs if go wrong, are great help to >>>> me in finding problems earlier. During merge as well, if those tests >>>> fail because of EXPLAIN outputs, that's a way to unwanted planner >>>> changes early enough and correct them. Sorry, for the huge change, but >>>> it's unavoidable. The testcases are intentionally prone to (planner) >>>> code modification. >>>> >>>> > >>>> > Regards, >>>> > >>>> > On Mon, Nov 26, 2012 at 8:42 PM, Ashutosh Bapat >>>> > <ash...@en...> wrote: >>>> >> >>>> >> Hi All, >>>> >> PFA patch which enables pushing down the ORDER BY clause or sorting >>>> to the >>>> >> Datanode/s through standard_planner(). >>>> >> >>>> >> This patch leverages the already existing merge sort mechanism for >>>> >> RemoteQuery but now outside RemoteQuery using Sort plans. >>>> >> >>>> >> For a Sort plan it checks if all the expressions on which the result >>>> needs >>>> >> to be sorted are shippable and that the underlying tree allows to >>>> push ORDER >>>> >> BY to the Datanodes. If so, it includes the ORDER BY clause in the >>>> query to >>>> >> be sent to the Datanodes. If the number of Datanodes which >>>> participate in >>>> >> RemoteQuery is not 1, it adds a covering Sort node to merge the >>>> results from >>>> >> the Datanodes, otherwise, there is no covering Sort plan. >>>> >> >>>> >> The merge sort mechanism treats every Datanode as a tape and >>>> prefetches >>>> >> the results from the Datanode corresponding to a dwindling tape. >>>> This is >>>> >> enabled by setting the node from where to pull the next row before >>>> calling >>>> >> ExecProcNode on RemoteQueryState. >>>> >> >>>> >> The same mechanism is being used for Sort plan node under Group or >>>> Agg >>>> >> nodes. >>>> >> >>>> >> The patch adds test xc_sort.sql for testing this functionality. It >>>> also >>>> >> removes the now useless members sort and tuplesortstate from >>>> RemoteQuery and >>>> >> RemoteQueryState resp. >>>> >> -- >>>> >> Best Wishes, >>>> >> Ashutosh Bapat >>>> >> EntepriseDB Corporation >>>> >> The Enterprise Postgres Company >>>> >> >>>> >> >>>> >> >>>> >> >>>> ------------------------------------------------------------------------------ >>>> >> Monitor your physical, virtual and cloud infrastructure from a single >>>> >> web console. Get in-depth insight into apps, servers, databases, >>>> vmware, >>>> >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >>>> >> Pricing starts from $795 for 25 servers or applications! >>>> >> http://p.sf.net/sfu/zoho_dev2dev_nov >>>> >> _______________________________________________ >>>> >> Postgres-xc-developers mailing list >>>> >> Pos...@li... >>>> >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Michael Paquier >>>> > http://michael.otacoo.com >>>> >>>> >>>> >>>> -- >>>> Best Wishes, >>>> Ashutosh Bapat >>>> EntepriseDB Corporation >>>> The Enterprise Postgres Company >>>> >>> >>> >>> >>> -- >>> Best Wishes, >>> Ashutosh Bapat >>> EntepriseDB Corporation >>> The Postgres Database Company >>> >> >> >> >> -- >> Best Wishes, >> Ashutosh Bapat >> EntepriseDB Corporation >> The Postgres Database Company >> >> >> ------------------------------------------------------------------------------ >> Get your SQL database under version control now! >> Version control is standard for application code, but databases havent >> caught up. So what steps can you take to put your SQL databases under >> version control? Why should you start doing it? Read more to find out. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Postgres Database Company |
From: Koichi S. <koi...@gm...> - 2013-08-07 08:31:08
|
I'm afraid we have an issue in REPEATABLE_READ too. Do you need to support REPEATABLE_READ as well? We may need some more test for this. Regards; --- Koichi Suzuki 2013/8/5 Abbas Butt <abb...@en...> > > > On Mon, Aug 5, 2013 at 2:18 PM, Masataka Saito <pg...@gm...> wrote: > >> The patch will work fine. >> >> But this is my basal question: >> setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE) after XC >> block doesn't raise an exception, I know. >> Is it right shelving unsupported isolation level without an error? >> > > It is due to already checked in code > > void > assign_XactIsoLevel(const char *newval, void *extra) > { > XactIsoLevel = *((int *) extra); > #ifdef PGXC > /* > * PGXCTODO - PGXC does not support 9.1 serializable transactions yet > */ > if (XactIsoLevel == XACT_SERIALIZABLE) > XactIsoLevel = XACT_REPEATABLE_READ; > #endif > } > > I think we already have a source forge ticket to deal with this XC > limitation. > > > >> >> On Fri, Aug 2, 2013 at 4:36 PM, Abbas Butt <abb...@en...> >> wrote: >> > Hi, >> > PFA patch to make sure that JDBC regression skips tests for serializable >> > transactions. >> > >> > -- >> > Abbas >> > Architect >> > >> > Ph: 92.334.5100153 >> > Skype ID: gabbasb >> > www.enterprisedb.com >> > >> > Follow us on Twitter >> > @EnterpriseDB >> > >> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> > >> > >> ------------------------------------------------------------------------------ >> > Get your SQL database under version control now! >> > Version control is standard for application code, but databases havent >> > caught up. So what steps can you take to put your SQL databases under >> > version control? Why should you start doing it? Read more to find out. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Postgres-xc-developers mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> > >> > > > > -- > -- > *Abbas* > Architect > > Ph: 92.334.5100153 > Skype ID: gabbasb > www.enterprisedb.co <http://www.enterprisedb.com/>m<http://www.enterprisedb.com/> > * > Follow us on Twitter* > @EnterpriseDB > > Visit EnterpriseDB for tutorials, webinars, whitepapers<http://www.enterprisedb.com/resources-community>and more<http://www.enterprisedb.com/resources-community> > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > |
From: Nikhil S. <ni...@st...> - 2013-08-07 08:28:23
|
Hi Suzuki san, > 1, Did you run only pgxc_ctl on Mac OS and the others (all XC components) > on Linux? > I ran it on Linux machines. > 2. Did you really test that pgxc_ctl runs on Mac OS? pgxc_ctl uses so > many system() functions so it is shell script dependent. I do hope all > the shell scripts used in pgxc_ctl works in Mac OS too. > > Mac is my dev environment. I compile all source code on my Macbook natively. It was a minor annoyance to not to get the pgxc_ctl code to not compile on OS X, and hence I submitted this patch. I did not carry out any other kinds of testing on OS X though. Regards, Nikhils > Regards; > > > > > 2013/8/7 Nikhil Sontakke <ni...@st...> > >> Hi Suzuki san, >> >> PFA, patch which allows pgxc_ctl to compile on OS X. >> >> Regards, >> Nikhils >> -- >> StormDB - http://www.stormdb.com >> The Database Cloud >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > -- StormDB - http://www.stormdb.com The Database Cloud |
From: Koichi S. <koi...@gm...> - 2013-08-07 08:28:07
|
Hi; 2013/8/6 Ashutosh Bapat <ash...@en...> > Hi All, > I worked on this (patch attached) but I didn't see any performance > improvement. In fact, to my surprise the performance actually dropped. > > On a true cluster, with 5 coordinators and 5 datanodes, I saw these > numbers with 1000000 rows in a table with two integer columns. The times > are average times required for 100 runs of the same query, returning whole > rows ordered by one of the columns. > No ORDER BY push-down - 1640 ms > ORDER BY push-down using Sort plan - 1100 ms (this is the current > implementation) > ORDER BY Push-down using MergeAppend plan - 1170 ms > > The assumption behind trying this out was explained in my earlier mail in > this thread. But it looks like we do not get any improvement. > > One of the possible reasons, I think, is involvement of multiple > RemoteQuery nodes in MergeAppend plan. While executing MergeAppend plan, > the ExecProcNode() is called on the underlying node, one after the other. > For every RemoteQuery node in MergeAppend plan it waits till that node > emits a row. This means that we do not execute the queries on datanodes in > parallel when executing through MergeAppend plan unlike Sort plan where > there is only one RemoteQuery node involved. > > In order to get full advantage of MergeAppend plan (and keep the code > clean), I think we need to query the datanodes in parallel somewhere > outside ExecProcNode(). Thoughts? Suggestions? > Can we divide MergeAppend execution into two stage, one is just to issue a query and then begin to receive rows. Because this is a change in the core, we should submit the idea, the usecase and the code to PG community. Regards; --- Koichi Suzuki > > On Fri, May 24, 2013 at 1:30 AM, Ashutosh Bapat < > ash...@en...> wrote: > >> Hi All, >> While I hear Robert's presentation on query planning go wrong, I heard >> (first time) about MergeAppend plan. It looks like, we have something >> better to do with the way we are pushing the ORDER BY clauses and doing >> merge at the coordinator. Right now we are using Sort node and in ExecSort >> we start merging the rows. Instead, I think we should be using MergeAppend >> node. The only bad thing about this approach is MergeAppend node expects >> separate plans for each run of the sorted data. To do this, we need to >> replicate the RemoteQuery node as many times as there are nodes and put >> them in the list to the MergeAppend plan. I think that's going to solve the >> problem with materialisation (see mail thread "Using remote sorting for >> merge-join") and thus improve performance. It also takes away the need to >> have xc_node_id in the tupleslot of tuplestore. Obviously, simplifying the >> code. >> >> Any comments? >> >> Created 3613815 >> <https://sourceforge.net/tracker/?func=detail&aid=3613815&group_id=311227&atid=1310232>and >> assigned to me. >> <https://sourceforge.net/tracker/?func=detail&aid=3613815&group_id=311227&atid=1310232> >> >> On Mon, Dec 3, 2012 at 3:44 AM, Ashutosh Bapat < >> ash...@en...> wrote: >> >>> On Fri, Nov 30, 2012 at 9:37 AM, Michael Paquier >>> <mic...@gm...> wrote: >>> > Hi Ashutosh, >>> > >>> > Thanks for the patch. >>> > I found for the time being the following problems: >>> > 1) The patch has some whitespaces >>> > /home/michael/download/xc_sort.patch:16: trailing whitespace. >>> > >>> > /home/michael/download/xc_sort.patch:34: trailing whitespace. >>> > >>> > /home/michael/download/xc_sort.patch:307: trailing whitespace. >>> > return local_plan_left; >>> > /home/michael/download/xc_sort.patch:356: trailing whitespace. >>> > >>> > /home/michael/download/xc_sort.patch:360: trailing whitespace. >>> > >>> >>> Fixed. >>> >>> > error: patch failed: src/include/pgxc/execRemote.h:95 >>> > 2) the patch does not apply cleanly even by using "patch -p1"-like >>> commands >>> >>> When I sent the patch (more than a week before you replied) it was >>> based on the HEAD, but then there were some commits which created the >>> conflicts. The one attached should apply. >>> >>> > 3) No documentation about the new option enable_remotesort. >>> > 4) enable_remotesort is not listed in postgresql.conf. >>> > Please provide both documentation and reference in >>> postgresql.conf.sample >>> > for transparency of the code. As an open source project it is >>> important to >>> > classify all the options available, for both the user and the >>> developers. >>> >>> Added although, I still don't approve of it myself. >>> >>> > 5) What is cruelly missing with this patch are numbers. By how much >>> this >>> > feature improves performance? >>> > Simple tests like a ORDER BY on a table with millions of rows would be >>> > enough, but as this is a performance feature, you should provide data >>> about >>> > how much those cases are improved. >>> > 6) A complain that I say for each planner-related patch in this >>> project.... >>> > This patch has a size of 200KB, 65% being updates on the EXPLAIN >>> queries of >>> > the XC query planning regression tests. This makes the commit tree >>> > unreadable and the evolution of the regression tests realy hard to >>> follow >>> > because they need to be modified each time a planner optimization is >>> > introduced. We should move to a set of tests which is far more >>> > code-modification proof! >>> >>> This is planner code, so it's going to affect the plans that it >>> creates. In the test files we add EXPLAIN (with proper switches) to >>> check 1. whether the plans are coming as expected at that stage of >>> development, 2. Whether the clauses expected to be pushed down are >>> being indeed pushed down 3. the queries to be sent to the datanodes >>> are being crafted correctly. For every planner change, all the three >>> things above change, for the operation being planned and hence the >>> expected output changes are unavoidable. In fact, if you look at how >>> the expected output changing you get a idea of how correctly/wrong the >>> planner changes are made. Those diffs if go wrong, are great help to >>> me in finding problems earlier. During merge as well, if those tests >>> fail because of EXPLAIN outputs, that's a way to unwanted planner >>> changes early enough and correct them. Sorry, for the huge change, but >>> it's unavoidable. The testcases are intentionally prone to (planner) >>> code modification. >>> >>> > >>> > Regards, >>> > >>> > On Mon, Nov 26, 2012 at 8:42 PM, Ashutosh Bapat >>> > <ash...@en...> wrote: >>> >> >>> >> Hi All, >>> >> PFA patch which enables pushing down the ORDER BY clause or sorting >>> to the >>> >> Datanode/s through standard_planner(). >>> >> >>> >> This patch leverages the already existing merge sort mechanism for >>> >> RemoteQuery but now outside RemoteQuery using Sort plans. >>> >> >>> >> For a Sort plan it checks if all the expressions on which the result >>> needs >>> >> to be sorted are shippable and that the underlying tree allows to >>> push ORDER >>> >> BY to the Datanodes. If so, it includes the ORDER BY clause in the >>> query to >>> >> be sent to the Datanodes. If the number of Datanodes which >>> participate in >>> >> RemoteQuery is not 1, it adds a covering Sort node to merge the >>> results from >>> >> the Datanodes, otherwise, there is no covering Sort plan. >>> >> >>> >> The merge sort mechanism treats every Datanode as a tape and >>> prefetches >>> >> the results from the Datanode corresponding to a dwindling tape. This >>> is >>> >> enabled by setting the node from where to pull the next row before >>> calling >>> >> ExecProcNode on RemoteQueryState. >>> >> >>> >> The same mechanism is being used for Sort plan node under Group or Agg >>> >> nodes. >>> >> >>> >> The patch adds test xc_sort.sql for testing this functionality. It >>> also >>> >> removes the now useless members sort and tuplesortstate from >>> RemoteQuery and >>> >> RemoteQueryState resp. >>> >> -- >>> >> Best Wishes, >>> >> Ashutosh Bapat >>> >> EntepriseDB Corporation >>> >> The Enterprise Postgres Company >>> >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Monitor your physical, virtual and cloud infrastructure from a single >>> >> web console. Get in-depth insight into apps, servers, databases, >>> vmware, >>> >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >>> >> Pricing starts from $795 for 25 servers or applications! >>> >> http://p.sf.net/sfu/zoho_dev2dev_nov >>> >> _______________________________________________ >>> >> Postgres-xc-developers mailing list >>> >> Pos...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>> >> >>> > >>> > >>> > >>> > -- >>> > Michael Paquier >>> > http://michael.otacoo.com >>> >>> >>> >>> -- >>> Best Wishes, >>> Ashutosh Bapat >>> EntepriseDB Corporation >>> The Enterprise Postgres Company >>> >> >> >> >> -- >> Best Wishes, >> Ashutosh Bapat >> EntepriseDB Corporation >> The Postgres Database Company >> > > > > -- > Best Wishes, > Ashutosh Bapat > EntepriseDB Corporation > The Postgres Database Company > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > |
From: Koichi S. <koi...@gm...> - 2013-08-07 08:14:45
|
Thanks Nikhil for the patch. I have a couple of questions on this patch. 1, Did you run only pgxc_ctl on Mac OS and the others (all XC components) on Linux? 2. Did you really test that pgxc_ctl runs on Mac OS? pgxc_ctl uses so many system() functions so it is shell script dependent. I do hope all the shell scripts used in pgxc_ctl works in Mac OS too. Regards; 2013/8/7 Nikhil Sontakke <ni...@st...> > Hi Suzuki san, > > PFA, patch which allows pgxc_ctl to compile on OS X. > > Regards, > Nikhils > -- > StormDB - http://www.stormdb.com > The Database Cloud > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > |
From: Michael P. <mic...@gm...> - 2013-08-07 03:52:57
|
On Wed, Aug 7, 2013 at 11:33 AM, Koichi Suzuki <koi...@gm...> wrote: > Postgres-XC sourceforge repository has been upgraded successfully. There > are no change in development page URL. GIT repository URL changed. The new URL can be found here: http://sourceforge.net/p/postgres-xc/postgres-xc/ci/master/tree/ And you can use git protocol: git clone git://git.code.sf.net/p/postgres-xc/postgres-xc postgres-xc-postgres-xc or https to clone the repository: git clone http://git.code.sf.net/p/postgres-xc/postgres-xc postgres-xc-postgres-xc > > Top page of the development page will have "GIT" tag, where you can choose a > repository (postgres-xc, in this case) then you will get URLs for RW, RO and > HTTPS, depending your privilege to the repo. RW = read-write RO = read-only HTTP = can be both depending on your status on the project concerned > I've not tested if we can continue to use local repo just with changing > configuration. What do you mean by that? You just need to change the link to remote folder by either running for example "git remote set-url" or even setting directly .git/config. This does not impact your local environment, the commits SHA1 as well as the commit history are still the same. > Hope they provide faster link. It looks that the new layer of their website is very github-like. This is not necessarily a bad thing :) https is something people have wanted in sourceforge for years... Definitely useful for people hidden behind a company firewall. -- Michael |
From: Koichi S. <koi...@gm...> - 2013-08-07 02:33:23
|
Hello; Postgres-XC sourceforge repository has been upgraded successfully. There are no change in development page URL. GIT repository URL changed. Top page of the development page will have "GIT" tag, where you can choose a repository (postgres-xc, in this case) then you will get URLs for RW, RO and HTTPS, depending your privilege to the repo. I've not tested if we can continue to use local repo just with changing configuration. Hope they provide faster link. Good Luck; --- Koichi Suzuki |
From: Masataka S. <pg...@gm...> - 2013-08-07 01:31:52
|
I'm sorry to be late. This is the thing I intended. All right to change other tests like this one. On Wed, Aug 7, 2013 at 8:33 AM, Abbas Butt <abb...@en...> wrote: > Hi, > Please spare some time for this patch, once accepted the same technique > needs to be applied to fix integer, date. time and time-stamp tests. > Thanks. > > > On Tue, Aug 6, 2013 at 8:27 AM, Abbas Butt <abb...@en...> > wrote: >> >> PFA revised patch. >> >> >> On Tue, Aug 6, 2013 at 7:21 AM, Masataka Saito <pg...@gm...> wrote: >>> >>> I meant append a serial column to the tail of tables. >>> Then you need not to modify INSERTs and SELECT targets because they >>> want first column to test. >>> >>> e.g. >>> TestUtil.createTable(con, "testbool", "i serial, a boolean"); >>> -> TestUtil.createTable(con, "testbool", "a boolean, i serial"); >>> >>> stmt.executeUpdate("INSERT INTO testboolstring VALUES('true')"); >>> -> (needless to change) >>> >>> ResultSet rs = con.createStatement().executeQuery("select * from >>> testbool"); >>> -> ResultSet rs = con.createStatement().executeQuery("select * >>> from testbool"); >>> rs.close(); >>> rs = con.createStatement().executeQuery("select * from >>> testbool order by i"); >>> (Of course, you can branch statement like you did.) >>> >>> Regards. >>> >>> On Mon, Aug 5, 2013 at 9:16 PM, Abbas Butt <abb...@en...> >>> wrote: >>> > Please use this patch for review, attached the wrong patch file with >>> > the >>> > previous mail. >>> > >>> > >>> > On Mon, Aug 5, 2013 at 4:59 PM, Abbas Butt >>> > <abb...@en...> >>> > wrote: >>> >> >>> >> Attached please find a revised patch according to your suggestion. >>> >> I am holding the rest of the patches till you review this one, because >>> >> we >>> >> need similar changes for integer, date, time and time-stamp tests. >>> >> >>> >> >>> >> On Mon, Aug 5, 2013 at 12:45 PM, Masataka Saito <pg...@gm...> >>> >> wrote: >>> >>> >>> >>> Hi, >>> >>> >>> >>> I feel feckless for sorting assertins. >>> >>> >>> >>> I propose appending a serial column to test tables and SELECT rows >>> >>> ORDERED BY it. >>> >>> I think this idea makes costless and it doesn't against to the gist >>> >>> of >>> >>> the test. >>> >>> >>> >>> Regards. >>> >>> >>> >>> On Fri, Aug 2, 2013 at 8:47 PM, Abbas Butt >>> >>> <abb...@en...> >>> >>> wrote: >>> >>> > Hi, >>> >>> > PFA patch to fix wrongly written boolean tests, patch comments >>> >>> > explain >>> >>> > the >>> >>> > errors and the fix. >>> >>> > >>> >>> > -- >>> >>> > Abbas >>> >>> > Architect >>> >>> > >>> >>> > Ph: 92.334.5100153 >>> >>> > Skype ID: gabbasb >>> >>> > www.enterprisedb.com >>> >>> > >>> >>> > Follow us on Twitter >>> >>> > @EnterpriseDB >>> >>> > >>> >>> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >>> >>> > >>> >>> > >>> >>> > >>> >>> > ------------------------------------------------------------------------------ >>> >>> > Get your SQL database under version control now! >>> >>> > Version control is standard for application code, but databases >>> >>> > havent >>> >>> > caught up. So what steps can you take to put your SQL databases >>> >>> > under >>> >>> > version control? Why should you start doing it? Read more to find >>> >>> > out. >>> >>> > >>> >>> > >>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >>> >>> > _______________________________________________ >>> >>> > Postgres-xc-developers mailing list >>> >>> > Pos...@li... >>> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>> >>> > >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> -- >>> >> Abbas >>> >> Architect >>> >> >>> >> Ph: 92.334.5100153 >>> >> Skype ID: gabbasb >>> >> www.enterprisedb.com >>> >> >>> >> Follow us on Twitter >>> >> @EnterpriseDB >>> >> >>> >> Visit EnterpriseDB for tutorials, webinars, whitepapers and more >>> > >>> > >>> > >>> > >>> > -- >>> > -- >>> > Abbas >>> > Architect >>> > >>> > Ph: 92.334.5100153 >>> > Skype ID: gabbasb >>> > www.enterprisedb.com >>> > >>> > Follow us on Twitter >>> > @EnterpriseDB >>> > >>> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> >> >> >> >> -- >> -- >> Abbas >> Architect >> >> Ph: 92.334.5100153 >> Skype ID: gabbasb >> www.enterprisedb.com >> >> Follow us on Twitter >> @EnterpriseDB >> >> Visit EnterpriseDB for tutorials, webinars, whitepapers and more > > > > > -- > -- > Abbas > Architect > > Ph: 92.334.5100153 > Skype ID: gabbasb > www.enterprisedb.com > > Follow us on Twitter > @EnterpriseDB > > Visit EnterpriseDB for tutorials, webinars, whitepapers and more |
From: Abbas B. <abb...@en...> - 2013-08-06 23:33:19
|
Hi, Please spare some time for this patch, once accepted the same technique needs to be applied to fix integer, date. time and time-stamp tests. Thanks. On Tue, Aug 6, 2013 at 8:27 AM, Abbas Butt <abb...@en...>wrote: > PFA revised patch. > > > On Tue, Aug 6, 2013 at 7:21 AM, Masataka Saito <pg...@gm...> wrote: > >> I meant append a serial column to the tail of tables. >> Then you need not to modify INSERTs and SELECT targets because they >> want first column to test. >> >> e.g. >> TestUtil.createTable(con, "testbool", "i serial, a boolean"); >> -> TestUtil.createTable(con, "testbool", "a boolean, i serial"); >> >> stmt.executeUpdate("INSERT INTO testboolstring VALUES('true')"); >> -> (needless to change) >> >> ResultSet rs = con.createStatement().executeQuery("select * from >> testbool"); >> -> ResultSet rs = con.createStatement().executeQuery("select * >> from testbool"); >> rs.close(); >> rs = con.createStatement().executeQuery("select * from >> testbool order by i"); >> (Of course, you can branch statement like you did.) >> >> Regards. >> >> On Mon, Aug 5, 2013 at 9:16 PM, Abbas Butt <abb...@en...> >> wrote: >> > Please use this patch for review, attached the wrong patch file with the >> > previous mail. >> > >> > >> > On Mon, Aug 5, 2013 at 4:59 PM, Abbas Butt <abb...@en... >> > >> > wrote: >> >> >> >> Attached please find a revised patch according to your suggestion. >> >> I am holding the rest of the patches till you review this one, because >> we >> >> need similar changes for integer, date, time and time-stamp tests. >> >> >> >> >> >> On Mon, Aug 5, 2013 at 12:45 PM, Masataka Saito <pg...@gm...> >> wrote: >> >>> >> >>> Hi, >> >>> >> >>> I feel feckless for sorting assertins. >> >>> >> >>> I propose appending a serial column to test tables and SELECT rows >> >>> ORDERED BY it. >> >>> I think this idea makes costless and it doesn't against to the gist of >> >>> the test. >> >>> >> >>> Regards. >> >>> >> >>> On Fri, Aug 2, 2013 at 8:47 PM, Abbas Butt < >> abb...@en...> >> >>> wrote: >> >>> > Hi, >> >>> > PFA patch to fix wrongly written boolean tests, patch comments >> explain >> >>> > the >> >>> > errors and the fix. >> >>> > >> >>> > -- >> >>> > Abbas >> >>> > Architect >> >>> > >> >>> > Ph: 92.334.5100153 >> >>> > Skype ID: gabbasb >> >>> > www.enterprisedb.com >> >>> > >> >>> > Follow us on Twitter >> >>> > @EnterpriseDB >> >>> > >> >>> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> >>> > >> >>> > >> >>> > >> ------------------------------------------------------------------------------ >> >>> > Get your SQL database under version control now! >> >>> > Version control is standard for application code, but databases >> havent >> >>> > caught up. So what steps can you take to put your SQL databases >> under >> >>> > version control? Why should you start doing it? Read more to find >> out. >> >>> > >> >>> > >> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> >>> > _______________________________________________ >> >>> > Postgres-xc-developers mailing list >> >>> > Pos...@li... >> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >>> > >> >> >> >> >> >> >> >> >> >> -- >> >> -- >> >> Abbas >> >> Architect >> >> >> >> Ph: 92.334.5100153 >> >> Skype ID: gabbasb >> >> www.enterprisedb.com >> >> >> >> Follow us on Twitter >> >> @EnterpriseDB >> >> >> >> Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> > >> > >> > >> > >> > -- >> > -- >> > Abbas >> > Architect >> > >> > Ph: 92.334.5100153 >> > Skype ID: gabbasb >> > www.enterprisedb.com >> > >> > Follow us on Twitter >> > @EnterpriseDB >> > >> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> > > > > -- > -- > *Abbas* > Architect > > Ph: 92.334.5100153 > Skype ID: gabbasb > www.enterprisedb.co <http://www.enterprisedb.com/>m<http://www.enterprisedb.com/> > * > Follow us on Twitter* > @EnterpriseDB > > Visit EnterpriseDB for tutorials, webinars, whitepapers<http://www.enterprisedb.com/resources-community>and more<http://www.enterprisedb.com/resources-community> > -- -- *Abbas* Architect Ph: 92.334.5100153 Skype ID: gabbasb www.enterprisedb.co <http://www.enterprisedb.com/>m<http://www.enterprisedb.com/> * Follow us on Twitter* @EnterpriseDB Visit EnterpriseDB for tutorials, webinars, whitepapers<http://www.enterprisedb.com/resources-community>and more<http://www.enterprisedb.com/resources-community> |
From: Nikhil S. <ni...@st...> - 2013-08-06 06:00:54
|
> Can GTM/proxy cleanup the pending list when it detects the death of a > connection, just like GTM does its cleanup? > > Well, the pending requests are not stored in a per client list. We could go and look for this specific client in the list though and clean it up. But remember that the client might have given a set of instructions to the proxy and disappeared legitimately. So processing all requests in order before processing the disconnection seems much cleaner. Regards, Nikhils > > On Tue, Aug 6, 2013 at 11:03 AM, Nikhil Sontakke <ni...@st...>wrote: > >> >> A naive question, >>> Can we also cleanup the pending list? >>> >>> >> Umm, the processed commands are put onto the thr_processed_commands list >> and freed up eventually. Is that what you were asking? >> >> Regards, >> Nikhils >> >>> >>> On Tue, Aug 6, 2013 at 9:56 AM, Nikhil Sontakke <ni...@st...>wrote: >>> >>>> Hi, >>>> >>>> We have had a long standing issue with a GTM Proxy in the mix. It has >>>> been reported here: >>>> >>>> >>>> http://sourceforge.net/mailarchive/forum.php?thread_name=CAB7nPqQ51fabopxCOHPrRM%3D2WTJMikfZUPHNEW942DDHmED7bQ%40mail.gmail.com&forum_name=postgres-xc-developers >>>> >>>> I think I found the root cause: >>>> >>>> Here's how things work: >>>> >>>> The client connects to proxy. The proxy internally connects to the GTM. >>>> >>>> Some commands from clients are sent immediately to the GTM by the >>>> proxy. >>>> >>>> Some commands are put in the pending list on the proxy for batch >>>> processing later. >>>> >>>> Now, if the client goes away before processing pending commands, the >>>> proxy is immediately telling the GTM so. That initiates a cleanup on the >>>> GTM side and removes the XIDs associated with this client. After this >>>> cleanup when the GTM receives a command like "MSG_SNAPSHOT_GET" or >>>> "MSG_TXN_COMMIT_MULTI" etc. from the pending list from the proxy, then it's >>>> going to get confused. >>>> >>>> A way to handle this is to put "disconnected" messages also onto the >>>> pending list. We then process these "disconnected" messages LAST from the >>>> pending list. >>>> >>>> I have tried this fix and run a number of tests (using pgbench) and >>>> things seem to be ok. I do not see the invalid handle and snapshot errors >>>> on the GTM side with this patch in place. >>>> >>>> PFA, patches for 1.0, 1.1 and head attached with this email. >>>> >>>> Regards, >>>> Nikhils >>>> -- >>>> StormDB - http://www.stormdb.com >>>> The Database Cloud >>>> >>>> ------------------------------------------------------------------------------ >>>> Get your SQL database under version control now! >>>> Version control is standard for application code, but databases havent >>>> caught up. So what steps can you take to put your SQL databases under >>>> version control? Why should you start doing it? Read more to find out. >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Postgres-xc-developers mailing list >>>> Pos...@li... >>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>>> >>>> >>> >>> >>> -- >>> Best Wishes, >>> Ashutosh Bapat >>> EntepriseDB Corporation >>> The Postgres Database Company >>> >> >> >> >> -- >> StormDB - http://www.stormdb.com >> The Database Cloud >> > > > > -- > Best Wishes, > Ashutosh Bapat > EntepriseDB Corporation > The Postgres Database Company > -- StormDB - http://www.stormdb.com The Database Cloud |
From: Ashutosh B. <ash...@en...> - 2013-08-06 05:54:51
|
Sorry, I wasn't clear enough. Can GTM/proxy cleanup the pending list when it detects the death of a connection, just like GTM does its cleanup? On Tue, Aug 6, 2013 at 11:03 AM, Nikhil Sontakke <ni...@st...>wrote: > > A naive question, >> Can we also cleanup the pending list? >> >> > Umm, the processed commands are put onto the thr_processed_commands list > and freed up eventually. Is that what you were asking? > > Regards, > Nikhils > >> >> On Tue, Aug 6, 2013 at 9:56 AM, Nikhil Sontakke <ni...@st...>wrote: >> >>> Hi, >>> >>> We have had a long standing issue with a GTM Proxy in the mix. It has >>> been reported here: >>> >>> >>> http://sourceforge.net/mailarchive/forum.php?thread_name=CAB7nPqQ51fabopxCOHPrRM%3D2WTJMikfZUPHNEW942DDHmED7bQ%40mail.gmail.com&forum_name=postgres-xc-developers >>> >>> I think I found the root cause: >>> >>> Here's how things work: >>> >>> The client connects to proxy. The proxy internally connects to the GTM. >>> >>> Some commands from clients are sent immediately to the GTM by the proxy. >>> >>> Some commands are put in the pending list on the proxy for batch >>> processing later. >>> >>> Now, if the client goes away before processing pending commands, the >>> proxy is immediately telling the GTM so. That initiates a cleanup on the >>> GTM side and removes the XIDs associated with this client. After this >>> cleanup when the GTM receives a command like "MSG_SNAPSHOT_GET" or >>> "MSG_TXN_COMMIT_MULTI" etc. from the pending list from the proxy, then it's >>> going to get confused. >>> >>> A way to handle this is to put "disconnected" messages also onto the >>> pending list. We then process these "disconnected" messages LAST from the >>> pending list. >>> >>> I have tried this fix and run a number of tests (using pgbench) and >>> things seem to be ok. I do not see the invalid handle and snapshot errors >>> on the GTM side with this patch in place. >>> >>> PFA, patches for 1.0, 1.1 and head attached with this email. >>> >>> Regards, >>> Nikhils >>> -- >>> StormDB - http://www.stormdb.com >>> The Database Cloud >>> >>> ------------------------------------------------------------------------------ >>> Get your SQL database under version control now! >>> Version control is standard for application code, but databases havent >>> caught up. So what steps can you take to put your SQL databases under >>> version control? Why should you start doing it? Read more to find out. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Postgres-xc-developers mailing list >>> Pos...@li... >>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>> >>> >> >> >> -- >> Best Wishes, >> Ashutosh Bapat >> EntepriseDB Corporation >> The Postgres Database Company >> > > > > -- > StormDB - http://www.stormdb.com > The Database Cloud > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Postgres Database Company |
From: Nikhil S. <ni...@st...> - 2013-08-06 05:34:22
|
> A naive question, > Can we also cleanup the pending list? > > Umm, the processed commands are put onto the thr_processed_commands list and freed up eventually. Is that what you were asking? Regards, Nikhils > > On Tue, Aug 6, 2013 at 9:56 AM, Nikhil Sontakke <ni...@st...>wrote: > >> Hi, >> >> We have had a long standing issue with a GTM Proxy in the mix. It has >> been reported here: >> >> >> http://sourceforge.net/mailarchive/forum.php?thread_name=CAB7nPqQ51fabopxCOHPrRM%3D2WTJMikfZUPHNEW942DDHmED7bQ%40mail.gmail.com&forum_name=postgres-xc-developers >> >> I think I found the root cause: >> >> Here's how things work: >> >> The client connects to proxy. The proxy internally connects to the GTM. >> >> Some commands from clients are sent immediately to the GTM by the proxy. >> >> Some commands are put in the pending list on the proxy for batch >> processing later. >> >> Now, if the client goes away before processing pending commands, the >> proxy is immediately telling the GTM so. That initiates a cleanup on the >> GTM side and removes the XIDs associated with this client. After this >> cleanup when the GTM receives a command like "MSG_SNAPSHOT_GET" or >> "MSG_TXN_COMMIT_MULTI" etc. from the pending list from the proxy, then it's >> going to get confused. >> >> A way to handle this is to put "disconnected" messages also onto the >> pending list. We then process these "disconnected" messages LAST from the >> pending list. >> >> I have tried this fix and run a number of tests (using pgbench) and >> things seem to be ok. I do not see the invalid handle and snapshot errors >> on the GTM side with this patch in place. >> >> PFA, patches for 1.0, 1.1 and head attached with this email. >> >> Regards, >> Nikhils >> -- >> StormDB - http://www.stormdb.com >> The Database Cloud >> >> ------------------------------------------------------------------------------ >> Get your SQL database under version control now! >> Version control is standard for application code, but databases havent >> caught up. So what steps can you take to put your SQL databases under >> version control? Why should you start doing it? Read more to find out. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > > > -- > Best Wishes, > Ashutosh Bapat > EntepriseDB Corporation > The Postgres Database Company > -- StormDB - http://www.stormdb.com The Database Cloud |
From: Ashutosh B. <ash...@en...> - 2013-08-06 05:13:16
|
A naive question, Can we also cleanup the pending list? On Tue, Aug 6, 2013 at 9:56 AM, Nikhil Sontakke <ni...@st...> wrote: > Hi, > > We have had a long standing issue with a GTM Proxy in the mix. It has been > reported here: > > > http://sourceforge.net/mailarchive/forum.php?thread_name=CAB7nPqQ51fabopxCOHPrRM%3D2WTJMikfZUPHNEW942DDHmED7bQ%40mail.gmail.com&forum_name=postgres-xc-developers > > I think I found the root cause: > > Here's how things work: > > The client connects to proxy. The proxy internally connects to the GTM. > > Some commands from clients are sent immediately to the GTM by the proxy. > > Some commands are put in the pending list on the proxy for batch > processing later. > > Now, if the client goes away before processing pending commands, the proxy > is immediately telling the GTM so. That initiates a cleanup on the GTM side > and removes the XIDs associated with this client. After this cleanup when > the GTM receives a command like "MSG_SNAPSHOT_GET" or > "MSG_TXN_COMMIT_MULTI" etc. from the pending list from the proxy, then it's > going to get confused. > > A way to handle this is to put "disconnected" messages also onto the > pending list. We then process these "disconnected" messages LAST from the > pending list. > > I have tried this fix and run a number of tests (using pgbench) and things > seem to be ok. I do not see the invalid handle and snapshot errors on the > GTM side with this patch in place. > > PFA, patches for 1.0, 1.1 and head attached with this email. > > Regards, > Nikhils > -- > StormDB - http://www.stormdb.com > The Database Cloud > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Postgres Database Company |
From: Nikhil S. <ni...@st...> - 2013-08-06 04:14:50
|
> One of the reasons why I chose to do it this way is to reduce the impact > on the code that I borrowed heavily from Postgres and turned it into > multi-threaded architecture. Thats why we also see something like > TopMostMemoryContext. I wanted to emulate thread as a process, but a few > things were required to be at process level. > Yeah, I understand your point of view. I am just saying that it confuses things. I have reported one core earlier just because someone palloc'ed in TopMemoryContext "assuming" that it's the top memory context and not the memory context of the thread. I am talking about those kinds of confusion. As I said, the current code looks ok enough and takes care to cleanup memory contexts appropriately AFAICS. Regards, Nikhils > > >> thrinfo->thr_error_context = AllocSetContextCreate(ErrorContext, >> >> The comment above this line says >> >> /* >> * Each thread gets its own ErrorContext and its a child of >> ErrorContext of >> * the main process >> */ >> >> However due to the inclusion of gtm.h, ErrorContext becomes a macro and >> expands to GetMyThreadInfo->thr_error_context which should be NULL! >> >> However the code is careful to track and release contexts AFAICS. But we >> need to be mindful of this in the future as well. >> >> > Will check that code. > > Thanks, > Pavan > -- StormDB - http://www.stormdb.com The Database Cloud |
From: Pavan D. <pav...@gm...> - 2013-08-06 04:11:46
|
On Tue, Aug 6, 2013 at 9:34 AM, Nikhil Sontakke <ni...@st...> wrote: > Me and Andrei looked at the code a bit. Other things look ok in general. > > Again the use of defines in gtm.h like: > > #define TopMemoryContext (GetMyThreadInfo->thr_thread_context) > > make me nervous. This can cause issues in the future as well. As an > example, the following code in GTM_ThreadCreate: > > One of the reasons why I chose to do it this way is to reduce the impact on the code that I borrowed heavily from Postgres and turned it into multi-threaded architecture. Thats why we also see something like TopMostMemoryContext. I wanted to emulate thread as a process, but a few things were required to be at process level. > thrinfo->thr_error_context = AllocSetContextCreate(ErrorContext, > > The comment above this line says > > /* > * Each thread gets its own ErrorContext and its a child of > ErrorContext of > * the main process > */ > > However due to the inclusion of gtm.h, ErrorContext becomes a macro and > expands to GetMyThreadInfo->thr_error_context which should be NULL! > > However the code is careful to track and release contexts AFAICS. But we > need to be mindful of this in the future as well. > > Will check that code. Thanks, Pavan |
From: Nikhil S. <ni...@st...> - 2013-08-06 04:05:25
|
Me and Andrei looked at the code a bit. Other things look ok in general. Again the use of defines in gtm.h like: #define TopMemoryContext (GetMyThreadInfo->thr_thread_context) make me nervous. This can cause issues in the future as well. As an example, the following code in GTM_ThreadCreate: thrinfo->thr_error_context = AllocSetContextCreate(ErrorContext, The comment above this line says /* * Each thread gets its own ErrorContext and its a child of ErrorContext of * the main process */ However due to the inclusion of gtm.h, ErrorContext becomes a macro and expands to GetMyThreadInfo->thr_error_context which should be NULL! However the code is careful to track and release contexts AFAICS. But we need to be mindful of this in the future as well. Regards, Nikhils On Tue, Aug 6, 2013 at 7:25 AM, Koichi Suzuki <koi...@gm...> wrote: > Okay, the patch looks nice. > > Andrei, did you find any similar (wrong) memory handling? > > Regards; > --- > Koichi Suzuki > > > 2013/8/6 Andrei Martsinchyk <and...@gm...> > >> GTM never pfrees pstrdup'ed value of gti_coordname, and therefore leaks >> memory in the TopMostMemoryContext. >> Please find fix attached. The patch is made against the master branch, >> but applies to STABLE branches, to 1_0 with offsets. >> There were two places where GTM_TransactionInfo was cleaned up, so the >> code was pulled out into a separate function, for easier maintenance. >> >> -- >> Andrei Martsinchyk >> >> StormDB - http://www.stormdb.com >> The Database Cloud >> >> >> >> ------------------------------------------------------------------------------ >> Get your SQL database under version control now! >> Version control is standard for application code, but databases havent >> caught up. So what steps can you take to put your SQL databases under >> version control? Why should you start doing it? Read more to find out. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > -- StormDB - http://www.stormdb.com The Database Cloud |
From: Andrei M. <and...@gm...> - 2013-08-06 04:04:43
|
2013/8/6 Koichi Suzuki <koi...@gm...> > Okay, the patch looks nice. > > Andrei, did you find any similar (wrong) memory handling? > > No, if I did, I would come up with a patch or bug report. > Regards; > --- > Koichi Suzuki > > > 2013/8/6 Andrei Martsinchyk <and...@gm...> > >> GTM never pfrees pstrdup'ed value of gti_coordname, and therefore leaks >> memory in the TopMostMemoryContext. >> Please find fix attached. The patch is made against the master branch, >> but applies to STABLE branches, to 1_0 with offsets. >> There were two places where GTM_TransactionInfo was cleaned up, so the >> code was pulled out into a separate function, for easier maintenance. >> >> -- >> Andrei Martsinchyk >> >> StormDB - http://www.stormdb.com >> The Database Cloud >> >> >> >> ------------------------------------------------------------------------------ >> Get your SQL database under version control now! >> Version control is standard for application code, but databases havent >> caught up. So what steps can you take to put your SQL databases under >> version control? Why should you start doing it? Read more to find out. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> _______________________________________________ >> Postgres-xc-developers mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > -- Andrei Martsinchyk StormDB - http://www.stormdb.com The Database Cloud |
From: Abbas B. <abb...@en...> - 2013-08-06 03:27:21
|
PFA revised patch. On Tue, Aug 6, 2013 at 7:21 AM, Masataka Saito <pg...@gm...> wrote: > I meant append a serial column to the tail of tables. > Then you need not to modify INSERTs and SELECT targets because they > want first column to test. > > e.g. > TestUtil.createTable(con, "testbool", "i serial, a boolean"); > -> TestUtil.createTable(con, "testbool", "a boolean, i serial"); > > stmt.executeUpdate("INSERT INTO testboolstring VALUES('true')"); > -> (needless to change) > > ResultSet rs = con.createStatement().executeQuery("select * from > testbool"); > -> ResultSet rs = con.createStatement().executeQuery("select * > from testbool"); > rs.close(); > rs = con.createStatement().executeQuery("select * from > testbool order by i"); > (Of course, you can branch statement like you did.) > > Regards. > > On Mon, Aug 5, 2013 at 9:16 PM, Abbas Butt <abb...@en...> > wrote: > > Please use this patch for review, attached the wrong patch file with the > > previous mail. > > > > > > On Mon, Aug 5, 2013 at 4:59 PM, Abbas Butt <abb...@en...> > > wrote: > >> > >> Attached please find a revised patch according to your suggestion. > >> I am holding the rest of the patches till you review this one, because > we > >> need similar changes for integer, date, time and time-stamp tests. > >> > >> > >> On Mon, Aug 5, 2013 at 12:45 PM, Masataka Saito <pg...@gm...> > wrote: > >>> > >>> Hi, > >>> > >>> I feel feckless for sorting assertins. > >>> > >>> I propose appending a serial column to test tables and SELECT rows > >>> ORDERED BY it. > >>> I think this idea makes costless and it doesn't against to the gist of > >>> the test. > >>> > >>> Regards. > >>> > >>> On Fri, Aug 2, 2013 at 8:47 PM, Abbas Butt < > abb...@en...> > >>> wrote: > >>> > Hi, > >>> > PFA patch to fix wrongly written boolean tests, patch comments > explain > >>> > the > >>> > errors and the fix. > >>> > > >>> > -- > >>> > Abbas > >>> > Architect > >>> > > >>> > Ph: 92.334.5100153 > >>> > Skype ID: gabbasb > >>> > www.enterprisedb.com > >>> > > >>> > Follow us on Twitter > >>> > @EnterpriseDB > >>> > > >>> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more > >>> > > >>> > > >>> > > ------------------------------------------------------------------------------ > >>> > Get your SQL database under version control now! > >>> > Version control is standard for application code, but databases > havent > >>> > caught up. So what steps can you take to put your SQL databases under > >>> > version control? Why should you start doing it? Read more to find > out. > >>> > > >>> > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > >>> > _______________________________________________ > >>> > Postgres-xc-developers mailing list > >>> > Pos...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > >>> > > >> > >> > >> > >> > >> -- > >> -- > >> Abbas > >> Architect > >> > >> Ph: 92.334.5100153 > >> Skype ID: gabbasb > >> www.enterprisedb.com > >> > >> Follow us on Twitter > >> @EnterpriseDB > >> > >> Visit EnterpriseDB for tutorials, webinars, whitepapers and more > > > > > > > > > > -- > > -- > > Abbas > > Architect > > > > Ph: 92.334.5100153 > > Skype ID: gabbasb > > www.enterprisedb.com > > > > Follow us on Twitter > > @EnterpriseDB > > > > Visit EnterpriseDB for tutorials, webinars, whitepapers and more > -- -- *Abbas* Architect Ph: 92.334.5100153 Skype ID: gabbasb www.enterprisedb.co <http://www.enterprisedb.com/>m<http://www.enterprisedb.com/> * Follow us on Twitter* @EnterpriseDB Visit EnterpriseDB for tutorials, webinars, whitepapers<http://www.enterprisedb.com/resources-community>and more<http://www.enterprisedb.com/resources-community> |
From: Masataka S. <pg...@gm...> - 2013-08-06 02:32:53
|
It's good. On Mon, Aug 5, 2013 at 9:23 PM, Abbas Butt <abb...@en...> wrote: > PFA revised patch. > > > On Mon, Aug 5, 2013 at 3:22 PM, Masataka Saito <pg...@gm...> wrote: >> >> On Mon, Aug 5, 2013 at 6:35 PM, Abbas Butt <abb...@en...> >> wrote: >> > >> > >> > On Mon, Aug 5, 2013 at 2:18 PM, Masataka Saito <pg...@gm...> wrote: >> >> >> >> The patch will work fine. >> >> >> >> But this is my basal question: >> >> setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE) after XC >> >> block doesn't raise an exception, I know. >> >> Is it right shelving unsupported isolation level without an error? >> > >> > >> > It is due to already checked in code >> > >> > void >> > assign_XactIsoLevel(const char *newval, void *extra) >> > { >> > XactIsoLevel = *((int *) extra); >> > #ifdef PGXC >> > /* >> > * PGXCTODO - PGXC does not support 9.1 serializable transactions >> > yet >> > */ >> > if (XactIsoLevel == XACT_SERIALIZABLE) >> > XactIsoLevel = XACT_REPEATABLE_READ; >> > #endif >> > } >> > >> > I think we already have a source forge ticket to deal with this XC >> > limitation. >> >> Thanks. >> I know it caused by XC limitation. >> >> I thought that unsupported level should be denied by >> check_XactIsoLevel rather than modified at assign_XactIsoLevel. >> I shouldn't grumble reviewed commit. I'm sorry to be bothering you with >> this. >> >> Reading check_XactIsoLevel, I found XC doesn't support SERIALIZABLE >> but supports other levels. >> I think you could replace SERIALIZABLE to other transaction level >> (e.g. REPEATABLE READ) instead of skipping. >> It is more natural by the gist of the test case. >> >> > >> > >> >> >> >> >> >> On Fri, Aug 2, 2013 at 4:36 PM, Abbas Butt >> >> <abb...@en...> >> >> wrote: >> >> > Hi, >> >> > PFA patch to make sure that JDBC regression skips tests for >> >> > serializable >> >> > transactions. >> >> > >> >> > -- >> >> > Abbas >> >> > Architect >> >> > >> >> > Ph: 92.334.5100153 >> >> > Skype ID: gabbasb >> >> > www.enterprisedb.com >> >> > >> >> > Follow us on Twitter >> >> > @EnterpriseDB >> >> > >> >> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Get your SQL database under version control now! >> >> > Version control is standard for application code, but databases >> >> > havent >> >> > caught up. So what steps can you take to put your SQL databases under >> >> > version control? Why should you start doing it? Read more to find >> >> > out. >> >> > >> >> > >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> >> > _______________________________________________ >> >> > Postgres-xc-developers mailing list >> >> > Pos...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >> >> > >> > >> > >> > >> > >> > -- >> > -- >> > Abbas >> > Architect >> > >> > Ph: 92.334.5100153 >> > Skype ID: gabbasb >> > www.enterprisedb.com >> > >> > Follow us on Twitter >> > @EnterpriseDB >> > >> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more > > > > > -- > -- > Abbas > Architect > > Ph: 92.334.5100153 > Skype ID: gabbasb > www.enterprisedb.com > > Follow us on Twitter > @EnterpriseDB > > Visit EnterpriseDB for tutorials, webinars, whitepapers and more |
From: Masataka S. <pg...@gm...> - 2013-08-06 02:21:36
|
I meant append a serial column to the tail of tables. Then you need not to modify INSERTs and SELECT targets because they want first column to test. e.g. TestUtil.createTable(con, "testbool", "i serial, a boolean"); -> TestUtil.createTable(con, "testbool", "a boolean, i serial"); stmt.executeUpdate("INSERT INTO testboolstring VALUES('true')"); -> (needless to change) ResultSet rs = con.createStatement().executeQuery("select * from testbool"); -> ResultSet rs = con.createStatement().executeQuery("select * from testbool"); rs.close(); rs = con.createStatement().executeQuery("select * from testbool order by i"); (Of course, you can branch statement like you did.) Regards. On Mon, Aug 5, 2013 at 9:16 PM, Abbas Butt <abb...@en...> wrote: > Please use this patch for review, attached the wrong patch file with the > previous mail. > > > On Mon, Aug 5, 2013 at 4:59 PM, Abbas Butt <abb...@en...> > wrote: >> >> Attached please find a revised patch according to your suggestion. >> I am holding the rest of the patches till you review this one, because we >> need similar changes for integer, date, time and time-stamp tests. >> >> >> On Mon, Aug 5, 2013 at 12:45 PM, Masataka Saito <pg...@gm...> wrote: >>> >>> Hi, >>> >>> I feel feckless for sorting assertins. >>> >>> I propose appending a serial column to test tables and SELECT rows >>> ORDERED BY it. >>> I think this idea makes costless and it doesn't against to the gist of >>> the test. >>> >>> Regards. >>> >>> On Fri, Aug 2, 2013 at 8:47 PM, Abbas Butt <abb...@en...> >>> wrote: >>> > Hi, >>> > PFA patch to fix wrongly written boolean tests, patch comments explain >>> > the >>> > errors and the fix. >>> > >>> > -- >>> > Abbas >>> > Architect >>> > >>> > Ph: 92.334.5100153 >>> > Skype ID: gabbasb >>> > www.enterprisedb.com >>> > >>> > Follow us on Twitter >>> > @EnterpriseDB >>> > >>> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Get your SQL database under version control now! >>> > Version control is standard for application code, but databases havent >>> > caught up. So what steps can you take to put your SQL databases under >>> > version control? Why should you start doing it? Read more to find out. >>> > >>> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >>> > _______________________________________________ >>> > Postgres-xc-developers mailing list >>> > Pos...@li... >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers >>> > >> >> >> >> >> -- >> -- >> Abbas >> Architect >> >> Ph: 92.334.5100153 >> Skype ID: gabbasb >> www.enterprisedb.com >> >> Follow us on Twitter >> @EnterpriseDB >> >> Visit EnterpriseDB for tutorials, webinars, whitepapers and more > > > > > -- > -- > Abbas > Architect > > Ph: 92.334.5100153 > Skype ID: gabbasb > www.enterprisedb.com > > Follow us on Twitter > @EnterpriseDB > > Visit EnterpriseDB for tutorials, webinars, whitepapers and more |
From: Koichi S. <koi...@gm...> - 2013-08-06 01:55:32
|
Okay, the patch looks nice. Andrei, did you find any similar (wrong) memory handling? Regards; --- Koichi Suzuki 2013/8/6 Andrei Martsinchyk <and...@gm...> > GTM never pfrees pstrdup'ed value of gti_coordname, and therefore leaks > memory in the TopMostMemoryContext. > Please find fix attached. The patch is made against the master branch, but > applies to STABLE branches, to 1_0 with offsets. > There were two places where GTM_TransactionInfo was cleaned up, so the > code was pulled out into a separate function, for easier maintenance. > > -- > Andrei Martsinchyk > > StormDB - http://www.stormdb.com > The Database Cloud > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > |
From: 鈴木 幸市 <ko...@in...> - 2013-08-05 13:25:27
|
Thanks. I've already tested similar patch but it is not sufficient. Somehow, response from GTM is received twice in a GTM-Proxy. Because GTM-Proxy clears up all the response in each round of backend scan, I'm worrying this has be caused by bad response handling in GTM, which does not happen when backgrounds are connected directly to the GTM. I'm asking Pavan a review on this. Regards; --- Koichi Suzuki On 2013/08/02, at 12:39, Nikhil Sontakke <ni...@st...> wrote: > Hi, > > I saw missing breaks for the MSG_BARRIER handling in both GTM and GTM_Proxy. I wonder if barrier works in the first place without these breaks? PFA, patch to fix this. AFAICS, the 1.1 branch also has similar issues. > > Regards, > Nikhils > -- > StormDB - http://www.stormdb.com > The Database Cloud <pgxc_head_barrier_missing_breaks.patch>------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk_______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers |
From: Michael P. <mic...@gm...> - 2013-08-05 13:24:38
|
On Mon, Aug 5, 2013 at 10:09 PM, 鈴木 幸市 <ko...@in...> wrote: > This depends on how serious the demand/usecase is and how works on it. > Yes, you can work on it and you must have demanding usecase. > > I mean when 1.1GA is out, it's safer to concentrate on the master. This > is a better place to work for Solaris. > As 1.1 stable branch and master are already separated, what is the point of not committing what Matt has sent before it is forgotten? It is perfectly possible to continue the development work on master while improving the 1.1 beta state. IMO, I think that we should look at what Matt could send. -- Michael |
From: 鈴木 幸市 <ko...@in...> - 2013-08-05 13:09:12
|
This depends on how serious the demand/usecase is and how works on it. Yes, you can work on it and you must have demanding usecase. I mean when 1.1GA is out, it's safer to concentrate on the master. This is a better place to work for Solaris. Regards; --- Koichi Suzuki On 2013/08/03, at 0:43, Matt Warner <MW...@XI...> wrote: > Good morning. > > I just wanted to check in and see whether there’s still an interest in the patches I submitted that allow XC to compile and run under Solaris with the Sun compiler. > > Regards, > > Matt > > From: Koichi Suzuki [mailto:koi...@gm...] > Sent: Thursday, June 27, 2013 9:27 AM > To: Matt Warner > Cc: Postgres-XC Developers > Subject: Re: [Postgres-xc-developers] Minor Fixes > > Thank you Matt. > > Please wait a bit until branch for 1.1 is built. > > Regards; > > ---------- > Koichi Suzuki > > > 2013/6/28 Matt Warner <MW...@xi...> > I’d be happy to continue testing on Solaris. > > From: Koichi Suzuki [mailto:koi...@gm...] > Sent: Wednesday, June 26, 2013 11:19 PM > To: Matt Warner; Postgres-XC Developers > > Subject: Re: [Postgres-xc-developers] Minor Fixes > > Hi, > > I reviewed this thread again. It may be better to include Matt's patch to the master after we build REL1_1_STABLE so that he can continue his Solaris-related work on the master. As Ashutosh suggested, it will be less confusing not to include this in REL1_1_STABLE. > > Because I'm about to build REL1_1_STABLE for beta work, please let me know if anybody need Matt's patch in 1.1. > > Matt, could you let me know your idea and if you can continue to test XC on Solaris and declare that XC supports Solaris? > > Best Regards; > > ---------- > Koichi Suzuki > > > 2013/6/25 Koichi Suzuki <koi...@gm...> > I meant that removing "return" statement which returns another function return value will be a good refactoring. Of course, simple return may not be removed. > > > ---------- > Koichi Suzuki > > > 2013/6/25 Koichi Suzuki <koi...@gm...> > Year. The code is not harmfull at all. Removing "return" from void functions could be a good refactoring. Although Solaris is not supported officieally yet, I think it's a good idea to have it in master. I do hope Matt continues to test XC so that we can tell XC runs on Solaris. > > Any more inputs? > > Regardsds; > > ---------- > Koichi Suzuki > > > 2013/6/25 Matt Warner <MW...@xi...> > I'll double check but I thought I'd only removed return from functions declaring void as their return type. > > ? > > Matt > > On Jun 23, 2013, at 6:22 PM, "鈴木 幸市" <ko...@in...> wrote: > > The patch looks reasonable. One comment: removing "return" for non-void function will cause Linux gcc warning. For this case, we need #ifdef SOLARIS directive. > > You sent two similar patch for proxy_main.c in separate e-mails. The later one seems to resolve my comment above. Although the core team cannot declare that XC runs on Solaris so far, I think the patch is reasonable to be included. > > Any other comments? > --- > Koichi Suzuki > > > > On 2013/06/22, at 1:26, Matt Warner <MW...@XI...> wrote: > > > Regarding the other changes, they are specific to Solaris. For example, in src/backend/pgxc/pool/pgxcnode.c, Solaris requires we include sys/filio.h. I’ll be searching to see if I can find a macro already defined for Solaris that I can leverage to #ifdef those Solaris-specific items. > > Matt > > From: Matt Warner > Sent: Friday, June 21, 2013 9:21 AM > To: 'Koichi Suzuki' > Cc: 'pos...@li...' > Subject: RE: [Postgres-xc-developers] Minor Fixes > > First patch. > > From: Matt Warner > Sent: Friday, June 21, 2013 8:50 AM > To: 'Koichi Suzuki' > Cc: pos...@li... > Subject: RE: [Postgres-xc-developers] Minor Fixes > > Yes, I’m running XC on Solaris x64. > > From: Koichi Suzuki [mailto:koi...@gm...] > Sent: Thursday, June 20, 2013 6:34 PM > To: Matt Warner > Cc: pos...@li... > Subject: Re: [Postgres-xc-developers] Minor Fixes > > Thanks a lot for the patch. As Michael mentioned, you can send a patch to developers mailing list. > > BTW, core team tested current XC on 64bit Intel CentOS and others tested it against RedHat. Did you test XC on Solaris? > > Regards; > > ---------- > Koichi Suzuki > > > 2013/6/21 Matt Warner <MW...@xi...> > Just a quick question about contributing fixes. I’ve had to make some minor changes to get XC compiled on Solaris x64. > What format would you like to see for the changes? Most are very minor, such as removing return statements inside void functions (which the Solaris compiler flags as incorrect since you can’t return from a void function). > Matt > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev_______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk_______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers |
From: Abbas B. <abb...@en...> - 2013-08-05 12:23:08
|
PFA revised patch. On Mon, Aug 5, 2013 at 3:22 PM, Masataka Saito <pg...@gm...> wrote: > On Mon, Aug 5, 2013 at 6:35 PM, Abbas Butt <abb...@en...> > wrote: > > > > > > On Mon, Aug 5, 2013 at 2:18 PM, Masataka Saito <pg...@gm...> wrote: > >> > >> The patch will work fine. > >> > >> But this is my basal question: > >> setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE) after XC > >> block doesn't raise an exception, I know. > >> Is it right shelving unsupported isolation level without an error? > > > > > > It is due to already checked in code > > > > void > > assign_XactIsoLevel(const char *newval, void *extra) > > { > > XactIsoLevel = *((int *) extra); > > #ifdef PGXC > > /* > > * PGXCTODO - PGXC does not support 9.1 serializable transactions yet > > */ > > if (XactIsoLevel == XACT_SERIALIZABLE) > > XactIsoLevel = XACT_REPEATABLE_READ; > > #endif > > } > > > > I think we already have a source forge ticket to deal with this XC > > limitation. > > Thanks. > I know it caused by XC limitation. > > I thought that unsupported level should be denied by > check_XactIsoLevel rather than modified at assign_XactIsoLevel. > I shouldn't grumble reviewed commit. I'm sorry to be bothering you with > this. > > Reading check_XactIsoLevel, I found XC doesn't support SERIALIZABLE > but supports other levels. > I think you could replace SERIALIZABLE to other transaction level > (e.g. REPEATABLE READ) instead of skipping. > It is more natural by the gist of the test case. > > > > > > >> > >> > >> On Fri, Aug 2, 2013 at 4:36 PM, Abbas Butt <abb...@en... > > > >> wrote: > >> > Hi, > >> > PFA patch to make sure that JDBC regression skips tests for > serializable > >> > transactions. > >> > > >> > -- > >> > Abbas > >> > Architect > >> > > >> > Ph: 92.334.5100153 > >> > Skype ID: gabbasb > >> > www.enterprisedb.com > >> > > >> > Follow us on Twitter > >> > @EnterpriseDB > >> > > >> > Visit EnterpriseDB for tutorials, webinars, whitepapers and more > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Get your SQL database under version control now! > >> > Version control is standard for application code, but databases havent > >> > caught up. So what steps can you take to put your SQL databases under > >> > version control? Why should you start doing it? Read more to find out. > >> > > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Postgres-xc-developers mailing list > >> > Pos...@li... > >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > >> > > > > > > > > > > > -- > > -- > > Abbas > > Architect > > > > Ph: 92.334.5100153 > > Skype ID: gabbasb > > www.enterprisedb.com > > > > Follow us on Twitter > > @EnterpriseDB > > > > Visit EnterpriseDB for tutorials, webinars, whitepapers and more > -- -- *Abbas* Architect Ph: 92.334.5100153 Skype ID: gabbasb www.enterprisedb.co <http://www.enterprisedb.com/>m<http://www.enterprisedb.com/> * Follow us on Twitter* @EnterpriseDB Visit EnterpriseDB for tutorials, webinars, whitepapers<http://www.enterprisedb.com/resources-community>and more<http://www.enterprisedb.com/resources-community> |