You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(28) |
Jun
(12) |
Jul
(11) |
Aug
(12) |
Sep
(5) |
Oct
(19) |
Nov
(14) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(18) |
Feb
(30) |
Mar
(115) |
Apr
(89) |
May
(50) |
Jun
(44) |
Jul
(22) |
Aug
(13) |
Sep
(11) |
Oct
(30) |
Nov
(28) |
Dec
(39) |
2012 |
Jan
(38) |
Feb
(18) |
Mar
(43) |
Apr
(91) |
May
(108) |
Jun
(46) |
Jul
(37) |
Aug
(44) |
Sep
(33) |
Oct
(29) |
Nov
(36) |
Dec
(15) |
2013 |
Jan
(35) |
Feb
(611) |
Mar
(5) |
Apr
(55) |
May
(30) |
Jun
(28) |
Jul
(458) |
Aug
(34) |
Sep
(9) |
Oct
(39) |
Nov
(22) |
Dec
(32) |
2014 |
Jan
(16) |
Feb
(16) |
Mar
(42) |
Apr
(179) |
May
(7) |
Jun
(6) |
Jul
(9) |
Aug
|
Sep
(4) |
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
(1) |
4
|
5
|
6
|
7
|
8
|
9
|
10
(1) |
11
|
12
|
13
(5) |
14
(1) |
15
(1) |
16
|
17
(3) |
18
(1) |
19
(11) |
20
|
21
|
22
|
23
(1) |
24
|
25
|
26
(1) |
27
|
28
(2) |
29
|
30
|
31
|
|
|
|
|
|
From: Michael P <mic...@us...> - 2010-05-28 00:19:26
|
Project "Postgres-XC". The branch, master has been created at 54529d7ad914e2959d7243055bbec08302c7e8dc (commit) - Log ----------------------------------------------------------------- commit 54529d7ad914e2959d7243055bbec08302c7e8dc Author: Mason S <mas...@ma...> Date: Wed May 26 14:08:02 2010 -0400 Minor change that updates COPY so that it knows ahead of time whether or not it should only execute on the Coordinator (pg_catalog tables). Written by Michael Paquier diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0fd4cb9..d641df8 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -800,6 +800,32 @@ CopyQuoteIdentifier(StringInfo query_buf, char *value) } #endif +#ifdef PGXC +/* + * In case there is no locator info available, copy to/from is launched in portal on coordinator. + * This happens for pg_catalog tables (not user defined ones) + * such as pg_catalog, pg_attribute, etc. + * This part is launched before the portal is activated, so check a first time if there + * some locator data for this relid and if no, return and launch the portal. + */ +bool +IsCoordPortalCopy(const CopyStmt *stmt) +{ + RelationLocInfo *rel_loc; /* the locator key */ + + /* In the case of a COPY SELECT, this is launched on datanodes */ + if(!stmt->relation) + return false; + + rel_loc = GetRelationLocInfo(RangeVarGetRelid(stmt->relation, true)); + + if (!rel_loc) + return true; + + return false; +} +#endif + /* * DoCopy executes the SQL COPY statement * @@ -832,7 +858,7 @@ CopyQuoteIdentifier(StringInfo query_buf, char *value) */ uint64 #ifdef PGXC -DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal, bool *executed) +DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal) #else DoCopy(const CopyStmt *stmt, const char *queryString) #endif @@ -1155,21 +1181,6 @@ DoCopy(const CopyStmt *stmt, const char *queryString) exec_nodes = (Exec_Nodes *) palloc0(sizeof(Exec_Nodes)); cstate->rel_loc = GetRelationLocInfo(RelationGetRelid(cstate->rel)); - /* - * In case there is no locator info available, copy to/from is launched in portal on coordinator. - * This happens for pg_catalog tables (not user defined ones) - * such as pg_catalog, pg_attribute, etc. - * This part is launched before the portal is activated, so check a first time if there - * some locator data for this relid and if no, return and launch the portal. - */ - if (!cstate->rel_loc && !exec_on_coord_portal) - { - /* close lock before leaving */ - if (cstate->rel) - heap_close(cstate->rel, (is_from ? NoLock : AccessShareLock)); - *executed = false; - return 0; - } if (exec_on_coord_portal) cstate->on_coord = true; @@ -1552,9 +1563,6 @@ DoCopy(const CopyStmt *stmt, const char *queryString) pfree(cstate->raw_buf); pfree(cstate); -#ifdef PGXC - *executed = true; -#endif return processed; } diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index cce476d..a0c0d90 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -992,17 +992,18 @@ exec_simple_query(const char *query_string) /* * A check on locator is made in DoCopy to determine if the copy can be launched on * Datanode or on Coordinator. - * If a table has no locator data, then done is set to false and copy is launched + * If a table has no locator data, then IsCoordPortalCopy returns false and copy is launched * on Coordinator instead (e.g., using pg_catalog tables). - * If a table has some locator data (user tables), then copy was launched normally + * If a table has some locator data (user tables), then copy is launched normally * in Datanodes */ - DoCopy(copy, query_string, false, &done); - - if (!done) - exec_on_coord = true; - else + if (!IsCoordPortalCopy(copy)) + { + DoCopy(copy, query_string, false); exec_on_coord = false; + } + else + exec_on_coord = true; } else { diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index b6275d9..6965e2e 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -602,7 +602,7 @@ ProcessUtility(Node *parsetree, uint64 processed; #ifdef PGXC bool done; - processed = DoCopy((CopyStmt *) parsetree, queryString, true, &done); + processed = DoCopy((CopyStmt *) parsetree, queryString, true); #else processed = DoCopy((CopyStmt *) parsetree, queryString): #endif diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index 7c0b4ca..5e7830a 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -18,7 +18,8 @@ #include "tcop/dest.h" #ifdef PGXC -extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal, bool *executed); +extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal); +extern bool IsCoordPortalCopy(const CopyStmt *stmt); #else extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString); #endif commit 45617c6321fa7a95d0b062f0918c9d9935f7fe53 Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Wed May 19 19:06:10 2010 -0400 Fixed a bug when using a table after it had been created in the same transaction but not committed. The problem was the location info in relcache was not read in. I just invalidated the entry immediately after creation to force it to be created properly. diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index f74c05c..fa6456a 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -547,6 +547,8 @@ DefineRelation(CreateStmt *stmt, char relkind) { AddRelationDistribution (relationId, stmt->distributeby, inheritOids, descriptor); CommandCounterIncrement(); + /* Make sure locator info gets rebuilt */ + RelationCacheInvalidateEntry(relationId); } #endif ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-28 00:18:46
|
Project "Postgres-XC". The branch, master has been deleted was 82fce875e77dbedc7fef0fd0e85c52fd93bca581 ----------------------------------------------------------------------- 82fce875e77dbedc7fef0fd0e85c52fd93bca581 Merge branch 'master' of ssh://mic...@po.../gitroot/postgres-xc/postgres-xc ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: mason_s <ma...@us...> - 2010-05-26 18:09:07
|
Project "Postgres-XC". The branch, master has been updated via 54529d7ad914e2959d7243055bbec08302c7e8dc (commit) from 45617c6321fa7a95d0b062f0918c9d9935f7fe53 (commit) - Log ----------------------------------------------------------------- commit 54529d7ad914e2959d7243055bbec08302c7e8dc Author: Mason S <mas...@ma...> Date: Wed May 26 14:08:02 2010 -0400 Minor change that updates COPY so that it knows ahead of time whether or not it should only execute on the Coordinator (pg_catalog tables). Written by Michael Paquier diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0fd4cb9..d641df8 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -800,6 +800,32 @@ CopyQuoteIdentifier(StringInfo query_buf, char *value) } #endif +#ifdef PGXC +/* + * In case there is no locator info available, copy to/from is launched in portal on coordinator. + * This happens for pg_catalog tables (not user defined ones) + * such as pg_catalog, pg_attribute, etc. + * This part is launched before the portal is activated, so check a first time if there + * some locator data for this relid and if no, return and launch the portal. + */ +bool +IsCoordPortalCopy(const CopyStmt *stmt) +{ + RelationLocInfo *rel_loc; /* the locator key */ + + /* In the case of a COPY SELECT, this is launched on datanodes */ + if(!stmt->relation) + return false; + + rel_loc = GetRelationLocInfo(RangeVarGetRelid(stmt->relation, true)); + + if (!rel_loc) + return true; + + return false; +} +#endif + /* * DoCopy executes the SQL COPY statement * @@ -832,7 +858,7 @@ CopyQuoteIdentifier(StringInfo query_buf, char *value) */ uint64 #ifdef PGXC -DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal, bool *executed) +DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal) #else DoCopy(const CopyStmt *stmt, const char *queryString) #endif @@ -1155,21 +1181,6 @@ DoCopy(const CopyStmt *stmt, const char *queryString) exec_nodes = (Exec_Nodes *) palloc0(sizeof(Exec_Nodes)); cstate->rel_loc = GetRelationLocInfo(RelationGetRelid(cstate->rel)); - /* - * In case there is no locator info available, copy to/from is launched in portal on coordinator. - * This happens for pg_catalog tables (not user defined ones) - * such as pg_catalog, pg_attribute, etc. - * This part is launched before the portal is activated, so check a first time if there - * some locator data for this relid and if no, return and launch the portal. - */ - if (!cstate->rel_loc && !exec_on_coord_portal) - { - /* close lock before leaving */ - if (cstate->rel) - heap_close(cstate->rel, (is_from ? NoLock : AccessShareLock)); - *executed = false; - return 0; - } if (exec_on_coord_portal) cstate->on_coord = true; @@ -1552,9 +1563,6 @@ DoCopy(const CopyStmt *stmt, const char *queryString) pfree(cstate->raw_buf); pfree(cstate); -#ifdef PGXC - *executed = true; -#endif return processed; } diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index cce476d..a0c0d90 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -992,17 +992,18 @@ exec_simple_query(const char *query_string) /* * A check on locator is made in DoCopy to determine if the copy can be launched on * Datanode or on Coordinator. - * If a table has no locator data, then done is set to false and copy is launched + * If a table has no locator data, then IsCoordPortalCopy returns false and copy is launched * on Coordinator instead (e.g., using pg_catalog tables). - * If a table has some locator data (user tables), then copy was launched normally + * If a table has some locator data (user tables), then copy is launched normally * in Datanodes */ - DoCopy(copy, query_string, false, &done); - - if (!done) - exec_on_coord = true; - else + if (!IsCoordPortalCopy(copy)) + { + DoCopy(copy, query_string, false); exec_on_coord = false; + } + else + exec_on_coord = true; } else { diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index b6275d9..6965e2e 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -602,7 +602,7 @@ ProcessUtility(Node *parsetree, uint64 processed; #ifdef PGXC bool done; - processed = DoCopy((CopyStmt *) parsetree, queryString, true, &done); + processed = DoCopy((CopyStmt *) parsetree, queryString, true); #else processed = DoCopy((CopyStmt *) parsetree, queryString): #endif diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index 7c0b4ca..5e7830a 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -18,7 +18,8 @@ #include "tcop/dest.h" #ifdef PGXC -extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal, bool *executed); +extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString, bool exec_on_coord_portal); +extern bool IsCoordPortalCopy(const CopyStmt *stmt); #else extern uint64 DoCopy(const CopyStmt *stmt, const char *queryString); #endif ----------------------------------------------------------------------- Summary of changes: src/backend/commands/copy.c | 46 +++++++++++++++++++++++++----------------- src/backend/tcop/postgres.c | 15 +++++++------ src/backend/tcop/utility.c | 2 +- src/include/commands/copy.h | 3 +- 4 files changed, 38 insertions(+), 28 deletions(-) hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-23 23:52:13
|
Project "website". The branch, master has been updated via 98c2cb0275e1213b44aca6747efa4939e5bd2004 (commit) from 7ddd0345092b7ce4716df4eae1b87e04816064ba (commit) - Log ----------------------------------------------------------------- commit 98c2cb0275e1213b44aca6747efa4939e5bd2004 Author: Michael P <mic...@us...> Date: Mon May 24 08:53:28 2010 +0900 Remove the announce about upcoming PGCon event diff --git a/events.html b/events.html index d36ddb3..52fee74 100755 --- a/events.html +++ b/events.html @@ -12,17 +12,6 @@ ==== UPCOMING EVENTS ==== --> <h2 class="plain">Events</h2> -<!-- PGCon2010 --> -<p class="plain"> -Mar.21, 2010, Postgres-XC -<a href="http://www.pgcon.org/2010/schedule/events/226.en.html" target="_blank"> -presentation -</a> -in -<a href="http://www.pgcon.org/2010/" target="_blank"> -PGCon2010. -</a> -</p> <!-- CHAR(10) --> <p class="plain"> Jul.1 to 3, 2010, ----------------------------------------------------------------------- Summary of changes: events.html | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) hooks/post-receive -- website |
From: Michael P <mic...@us...> - 2010-05-19 23:52:14
|
Project "website". The branch, master has been updated via 7ddd0345092b7ce4716df4eae1b87e04816064ba (commit) via a1153b0635a8949291ae0074d1d517d26bd87b84 (commit) from 2123998b130d93df911f3637680375b26b70d47f (commit) - Log ----------------------------------------------------------------- commit 7ddd0345092b7ce4716df4eae1b87e04816064ba Author: Michael P <mic...@us...> Date: Thu May 20 08:53:06 2010 +0900 Addition of Piwik tags to keep a trace on the website visitors diff --git a/index.html b/index.html index fd3287c..1e8ba9c 100755 --- a/index.html +++ b/index.html @@ -47,4 +47,18 @@ src="events.html" marginheight="10" marginwidth="10" frameborder="0"> </frameset> </frameset> +<body> +<!-- Piwik --> +<script type="text/javascript"> +var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/postgres-xc/" : "http://sourceforge.net/apps/piwik/postgres-xc/"); +document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); +</script><script type="text/javascript"> +try { +var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); +piwikTracker.trackPageView(); +piwikTracker.enableLinkTracking(); +} catch( err ) {} +</script><noscript><p><img src="http://sourceforge.net/apps/piwik/postgres-xc/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript> +<!-- End Piwik Tag --> +</body> </html> diff --git a/intro.html b/intro.html index 30a9a0d..2377d1e 100755 --- a/intro.html +++ b/intro.html @@ -71,7 +71,19 @@ to servers containing the target data. <!-- === Overview of the whole system === --> <p class="plain"> <img src="image/arch.jpg" width="650"> -</p> +</p> +<!-- Piwik --> +<script type="text/javascript"> +var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/postgres-xc/" : "http://sourceforge.net/apps/piwik/postgres-xc/"); +document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); +</script><script type="text/javascript"> +try { +var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); +piwikTracker.trackPageView(); +piwikTracker.enableLinkTracking(); +} catch( err ) {} +</script><noscript><p><img src="http://sourceforge.net/apps/piwik/postgres-xc/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript> +<!-- End Piwik Tag --> </body> </html> commit a1153b0635a8949291ae0074d1d517d26bd87b84 Author: Michael P <mic...@us...> Date: Wed May 19 14:51:04 2010 +0900 Delete base repository, this leaded in problems with IE7 diff --git a/intro.html b/intro.html index a913d60..30a9a0d 100755 --- a/intro.html +++ b/intro.html @@ -6,7 +6,6 @@ <html lang="en"> <head> <title>Postgres_XC Project Home</title> -<base href="."/> <link rel="stylesheet" type="text/css" href="pgcx_1.css"> </head> <body bgcolor=#FFFFFF> @@ -71,7 +70,7 @@ to servers containing the target data. </p> <!-- === Overview of the whole system === --> <p class="plain"> -<img src="http://postgres-xc.sourceforge.net/image/arch.jpg" width="650"> +<img src="image/arch.jpg" width="650"> </p> </body> </html> diff --git a/scalability.html b/scalability.html index 0b16261..323f460 100755 --- a/scalability.html +++ b/scalability.html @@ -15,7 +15,6 @@ architecture document or be in separate material such as here? <meta name="description" content="Postgres-XC project home"> <meta name="keywords" content="PostgreSQL cluster scalability multi-master"> -<base href="."/> <link rel="stylesheet" type="text/css" href="pgcx_1.css"> </head> <body bgcolor=#FFFFFF> @@ -50,7 +49,7 @@ please refer to the architecture document. The following figure shows Postgres-XC's scalability via number of servers. Dotted line shows ideal scalability. <div align="center"> -<img src="http://postgres-xc.sourceforge.net/image/scalability.jpg" > +<img src="image/scalability.jpg" > </div> </p> </body> ----------------------------------------------------------------------- Summary of changes: index.html | 14 ++++++++++++++ intro.html | 17 ++++++++++++++--- scalability.html | 3 +-- 3 files changed, 29 insertions(+), 5 deletions(-) hooks/post-receive -- website |
From: mason_s <ma...@us...> - 2010-05-19 23:24:54
|
Project "Postgres-XC". The branch, master has been updated via 45617c6321fa7a95d0b062f0918c9d9935f7fe53 (commit) from c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) - Log ----------------------------------------------------------------- commit 45617c6321fa7a95d0b062f0918c9d9935f7fe53 Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Wed May 19 19:06:10 2010 -0400 Fixed a bug when using a table after it had been created in the same transaction but not committed. The problem was the location info in relcache was not read in. I just invalidated the entry immediately after creation to force it to be created properly. diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index f74c05c..fa6456a 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -547,6 +547,8 @@ DefineRelation(CreateStmt *stmt, char relkind) { AddRelationDistribution (relationId, stmt->distributeby, inheritOids, descriptor); CommandCounterIncrement(); + /* Make sure locator info gets rebuilt */ + RelationCacheInvalidateEntry(relationId); } #endif ----------------------------------------------------------------------- Summary of changes: src/backend/commands/tablecmds.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 05:06:51
|
Project "website". The branch, master has been updated via 2123998b130d93df911f3637680375b26b70d47f (commit) from a054fe182f0d61e31b01578c73f23375c3783290 (commit) - Log ----------------------------------------------------------------- commit 2123998b130d93df911f3637680375b26b70d47f Author: Michael P <mic...@us...> Date: Wed May 19 14:07:38 2010 +0900 Modification due to IE7, some jpg images didn't display correctly. diff --git a/intro.html b/intro.html index 6eb0a93..a913d60 100755 --- a/intro.html +++ b/intro.html @@ -71,7 +71,7 @@ to servers containing the target data. </p> <!-- === Overview of the whole system === --> <p class="plain"> -<img src="image/arch.jpg" width="650"> +<img src="http://postgres-xc.sourceforge.net/image/arch.jpg" width="650"> </p> </body> </html> diff --git a/scalability.html b/scalability.html index d07dc81..0b16261 100755 --- a/scalability.html +++ b/scalability.html @@ -50,7 +50,7 @@ please refer to the architecture document. The following figure shows Postgres-XC's scalability via number of servers. Dotted line shows ideal scalability. <div align="center"> -<img src="image/scalability.jpg" > +<img src="http://postgres-xc.sourceforge.net/image/scalability.jpg" > </div> </p> </body> ----------------------------------------------------------------------- Summary of changes: intro.html | 2 +- scalability.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- website |
From: Michael P <mic...@us...> - 2010-05-19 04:00:56
|
Project "website". The branch, master has been updated via a054fe182f0d61e31b01578c73f23375c3783290 (commit) from f6ad2e9ff62f810f539e82929f0eed9947198fa9 (commit) - Log ----------------------------------------------------------------- commit a054fe182f0d61e31b01578c73f23375c3783290 Author: Michael P <mic...@us...> Date: Wed May 19 13:01:29 2010 +0900 Replace the banner on the top so as not to stick with the menu bar. Some Typo corrections diff --git a/index.html b/index.html index 0b1e854..fd3287c 100755 --- a/index.html +++ b/index.html @@ -24,10 +24,10 @@ --> <title>Postgres-XC project Page</title> </head> -<frameset rows=80,1,40,*> +<frameset rows=150,1,40,*> <!-- Title --> <frame name="title" - src="title.html" marginheight="0" marginwidth="0" frameborder="0" + src="title.html" marginheight="25" marginwidth="0" frameborder="0" style = "background-color:#FFFFFF"> <!-- Dummy --> <frame diff --git a/roadmap.html b/roadmap.html index 463b63f..8299fbd 100755 --- a/roadmap.html +++ b/roadmap.html @@ -59,7 +59,7 @@ Version 1.0 (Late in July, 2010) <p class="inner"> <code>ORDER BY</code><br> <code>DISTINCT</code><br> -Stured functions<br> +Stored functions<br> subqueries<br> Views<br> Rules<br> ----------------------------------------------------------------------- Summary of changes: index.html | 4 ++-- roadmap.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) hooks/post-receive -- website |
From: Michael P <mic...@us...> - 2010-05-19 02:50:05
|
Project "Postgres-XC". The branch, REL0_9_1_BETA has been deleted was c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 ----------------------------------------------------------------------- c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 Fix assertion failure so that \d commands with psql work. ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 02:45:20
|
Project "website". The branch, master has been updated via f6ad2e9ff62f810f539e82929f0eed9947198fa9 (commit) from 876f53b7c4f395d23930c76d004c7a4fa0b6d6ca (commit) - Log ----------------------------------------------------------------- commit f6ad2e9ff62f810f539e82929f0eed9947198fa9 Author: Michael P <mic...@us...> Date: Wed May 19 11:46:26 2010 +0900 Insert a title to the webpage diff --git a/index.html b/index.html index e1ca6dd..0b1e854 100755 --- a/index.html +++ b/index.html @@ -22,6 +22,7 @@ <!-- Header --- Ends here --> +<title>Postgres-XC project Page</title> </head> <frameset rows=80,1,40,*> <!-- Title --> ----------------------------------------------------------------------- Summary of changes: index.html | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) hooks/post-receive -- website |
From: Michael P <mic...@us...> - 2010-05-19 01:47:55
|
Project "Postgres-XC". The annotated tag, v0.9.1 has been deleted was df6488982d61df01ea012c04bbe45bce3ae11bea ----------------------------------------------------------------------- tag v0.9.1 Postgres-XC version 0.9.1 beta tag c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 Fix assertion failure so that \d commands with psql work. ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 00:37:26
|
Project "Postgres-XC". The branch, REL0_9_1_STABLE has been created at c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 00:36:53
|
Project "Postgres-XC". The annotated tag, v0.9.1 has been created at 560b29899b6391982ee819a82794763adbe234a5 (tag) tagging c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) replaces v0.9 tagged by Michael P on Wed May 19 09:33:18 2010 +0900 - Log ----------------------------------------------------------------- Postgres-XC version 0.9.1 tag Mason S (12): Removed ifdefed code for USE_SSL in GTM, since it is currently For writes to replicated tables, use primary copy technique to reduce Improved error handling. Added support for COPY FROM, for loading tables. Added support for COPY TO a file or STDOUT. Modified pgbench for Postgres-XC. This is the first of some planned changes to recognize more "Postgres-XC safe" Added support for basic aggregate handling. Fixed a bug where if many errors occur we run out of on_proc_exit slots. By default have configure set CFLAGS to use -DPGXC, which is required Fix some assertion failures. Fix assertion failure so that \d commands with psql work. Pavan Deolasee (2): Fix some stylistic issues with the code. Trying to make it more Fix an assertion failure in the GTM code. We were mistakenly overwriting an ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 00:11:58
|
Project "Postgres-XC". The branch, REL0_9_1_BETA has been created at c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-19 00:08:11
|
Project "Postgres-XC". The annotated tag, v0.9.1 has been created at df6488982d61df01ea012c04bbe45bce3ae11bea (tag) tagging c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) replaces v0.9 tagged by Michael P on Wed May 19 08:56:51 2010 +0900 - Log ----------------------------------------------------------------- Postgres-XC version 0.9.1 beta tag Mason S (12): Removed ifdefed code for USE_SSL in GTM, since it is currently For writes to replicated tables, use primary copy technique to reduce Improved error handling. Added support for COPY FROM, for loading tables. Added support for COPY TO a file or STDOUT. Modified pgbench for Postgres-XC. This is the first of some planned changes to recognize more "Postgres-XC safe" Added support for basic aggregate handling. Fixed a bug where if many errors occur we run out of on_proc_exit slots. By default have configure set CFLAGS to use -DPGXC, which is required Fix some assertion failures. Fix assertion failure so that \d commands with psql work. Pavan Deolasee (2): Fix some stylistic issues with the code. Trying to make it more Fix an assertion failure in the GTM code. We were mistakenly overwriting an ----------------------------------------------------------------------- hooks/post-receive -- Postgres-XC |
From: mason_s <ma...@us...> - 2010-05-18 22:23:46
|
Project "Postgres-XC". The branch, master has been updated via c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 (commit) from b075a9e103648e81c680e47210e43cbc71b5d958 (commit) - Log ----------------------------------------------------------------- commit c2e5a081606b4dfaaa55e45a76d680b55b6bbc15 Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Tue May 18 18:22:32 2010 -0400 Fix assertion failure so that \d commands with psql work. Written by Andrei diff --git a/src/backend/pgxc/plan/planner.c b/src/backend/pgxc/plan/planner.c index 098cd04..ffb2631 100644 --- a/src/backend/pgxc/plan/planner.c +++ b/src/backend/pgxc/plan/planner.c @@ -274,6 +274,10 @@ get_base_var(Var *var, List *rtables) { RangeTblEntry *rte; + /* Skip system attributes */ + if (!AttrNumberIsForUserDefinedAttr(var->varattno)) + return NULL; + /* get the RangeTableEntry */ rte = list_nth(rtables, var->varno - 1); ----------------------------------------------------------------------- Summary of changes: src/backend/pgxc/plan/planner.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) hooks/post-receive -- Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-17 04:57:32
|
Project "DBT-1/Postgres-XC". The annotated tag, pgxc_v0.9.1 has been created at 3ba5e0b47cf390a0e6cbe2579c5393d59e17a41b (tag) tagging 5343ab78653697ec3b01693344d8b4ccc6b5b3b0 (commit) tagged by Michael P on Mon May 17 13:58:45 2010 +0900 - Log ----------------------------------------------------------------- Postgres-XC v0.9.1 Michael P (4): Modified DBT-1 as a benchmark test for Postgres-XC version 0.9 Addition of a README file for user reference DBT-1 update due to the coming release of Postgres-XC 0.9.1. Creation of a new SQL file to upload data directly with COPY FROM. ----------------------------------------------------------------------- hooks/post-receive -- DBT-1/Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-17 04:55:20
|
Project "DBT-1/Postgres-XC". The branch, master has been updated via 5343ab78653697ec3b01693344d8b4ccc6b5b3b0 (commit) from e8423a49d59402dad28ba1499ea3da6fc6289d92 (commit) - Log ----------------------------------------------------------------- commit 5343ab78653697ec3b01693344d8b4ccc6b5b3b0 Author: Michael P <mic...@us...> Date: Mon May 17 13:56:08 2010 +0900 Creation of a new SQL file to upload data directly with COPY FROM. diff --git a/scripts/pgsql/copy.sql b/scripts/pgsql/copy.sql new file mode 100644 index 0000000..595b48a --- /dev/null +++ b/scripts/pgsql/copy.sql @@ -0,0 +1,10 @@ +-- copy dbt1 data to the cluster +copy address from '/tmp/address.data' delimiter '>'; +copy author from '/tmp/author.data' delimiter '>'; +copy stock from '/tmp/stock.data' delimiter '>'; +copy item from '/tmp/item.data' delimiter '>'; +copy country from '/tmp/country.data' delimiter '>'; +copy customer from '/tmp/customer.data' delimiter '>'; +copy orders from '/tmp/orders.data' delimiter '>'; +copy order_line from '/tmp/order_line.data' delimiter '>'; +copy cc_xacts from '/tmp/cc_xacts.data' delimiter '>'; ----------------------------------------------------------------------- Summary of changes: scripts/pgsql/copy.sql | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 scripts/pgsql/copy.sql hooks/post-receive -- DBT-1/Postgres-XC |
From: Michael P <mic...@us...> - 2010-05-17 04:52:38
|
Project "DBT-1/Postgres-XC". The branch, master has been updated via e8423a49d59402dad28ba1499ea3da6fc6289d92 (commit) from 47cc46c300b3ecfb7d1bb64c0cf7d8d2746ee3e6 (commit) - Log ----------------------------------------------------------------- commit e8423a49d59402dad28ba1499ea3da6fc6289d92 Author: Michael P <mic...@us...> Date: Mon May 17 13:51:52 2010 +0900 DBT-1 update due to the coming release of Postgres-XC 0.9.1. Data is now loaded in Database directly with COPY FROM. The user has still the choice to use INSERT SQL or COPY. diff --git a/datagen/main.c.in b/datagen/main.c.in index 3ca732a..bbea907 100644 --- a/datagen/main.c.in +++ b/datagen/main.c.in @@ -112,17 +112,17 @@ int main(int argc, char *argv[]) fprintf(sequence_sql, "%s CREATE SEQUENCE custid INCREMENT 1 START %d;\n", exec_sql, - 2880 * ebs + 1); + 3000 * ebs + 1); fprintf(sequence_sql, "commit;"); fprintf(sequence_sql, "%s CREATE SEQUENCE addrid INCREMENT 1 START %d;\n", exec_sql, - ebs * 2880 * 2 + 1); + ebs * 3000 * 2 + 1); fprintf(sequence_sql, "commit;"); fprintf(sequence_sql, "%s CREATE SEQUENCE scid INCREMENT 1 START %d;\n", exec_sql, - (int) ((double) ebs * 2880.0 * 0.9 + 1.0)); + (int) ((double) ebs * 3000.0 * 0.9 + 1.0)); fprintf(sequence_sql, "commit;"); fclose(sequence_sql); @@ -137,9 +137,9 @@ int main(int argc, char *argv[]) if (flag_item == 1) { gen_items(); - sprintf(cmd, "ln -fs %sitem.data /tmp/item.data\n", path); + sprintf(cmd, "ln -fs %s/item.data /tmp/item.data\n", path); popen(cmd, "r"); - sprintf(cmd, "ln -fs %sstock.data /tmp/stock.data\n", path); + sprintf(cmd, "ln -fs %s/stock.data /tmp/stock.data\n", path); popen(cmd, "r"); } @@ -147,25 +147,25 @@ int main(int argc, char *argv[]) { /* all the tables depend on ebs for the customer number */ gen_customers(); - sprintf(cmd, "ln -fs %scustomer.data /tmp/customer.data", path); + sprintf(cmd, "ln -fs %s/customer.data /tmp/customer.data", path); popen(cmd, "r"); - sprintf(cmd, "ln -fs %saddress.data /tmp/address.data", path); + sprintf(cmd, "ln -fs %s/address.data /tmp/address.data", path); popen(cmd, "r"); - sprintf(cmd, "ln -fs %sorders.data /tmp/orders.data", path); + sprintf(cmd, "ln -fs %s/orders.data /tmp/orders.data", path); popen(cmd, "r"); - sprintf(cmd, "ln -fs %sorder_line.data /tmp/order_line.data", + sprintf(cmd, "ln -fs %s/order_line.data /tmp/order_line.data", path); popen(cmd, "r"); - sprintf(cmd, "ln -fs %scc_xacts.data /tmp/cc_xacts.data", path); + sprintf(cmd, "ln -fs %s/cc_xacts.data /tmp/cc_xacts.data", path); popen(cmd, "r"); } if (flag_author == 1) { gen_authors(); - sprintf(cmd, "ln -fs %sauthor.data /tmp/author.data", path); + sprintf(cmd, "ln -fs %s/author.data /tmp/author.data", path); popen(cmd, "r"); } diff --git a/scripts/pgsql/build_db.sh.in b/scripts/pgsql/build_db.sh.in index e72a7d5..4fb3ed8 100755 --- a/scripts/pgsql/build_db.sh.in +++ b/scripts/pgsql/build_db.sh.in @@ -18,18 +18,17 @@ if [ "$DATAGEN_USE" = "ON" ] else echo "build the database without generating the data file" fi -if [ "$PGXC_USE" = "OFF" ] - then - date - echo "drop db" - @TOPDIR@/scripts/pgsql/drop_db.sh - echo - date - echo "create db" - @TOPDIR@/scripts/pgsql/create_db.sh - echo -fi +date +echo "drop db" +@TOPDIR@/scripts/pgsql/drop_db.sh +echo + +date +echo "create db" +@TOPDIR@/scripts/pgsql/create_db.sh +echo + date echo "create tables" @TOPDIR@/scripts/pgsql/create_tables.sh diff --git a/scripts/pgsql/build_param.sh.in b/scripts/pgsql/build_param.sh.in index 1851b41..3de123c 100644 --- a/scripts/pgsql/build_param.sh.in +++ b/scripts/pgsql/build_param.sh.in @@ -7,7 +7,9 @@ SERVER_PORT=5432 DATAGEN_ITEMS=1000 DATAGEN_EUS=10 DATAGEN_RESULT=$TOPDIR/scripts/pgsql/resultsql -PGXC_USE=ON #as createdb and dropdb commands delicate to manipulate with Postgres-XC, this parameter skips the parts liked to that #it can be set at ON of necessary -DATAGEN_USE=OFF +DATAGEN_USE=ON #permits to activate data generator +#COPY FROM/TO is supported since Postgres-XC 0.9.1 +COPYFROM_USE=ON #activates data load with COPY at ON + #set at OFF, it activates data transfer \ No newline at end of file diff --git a/scripts/pgsql/create_fk.sh.in b/scripts/pgsql/create_fk.sh.in index 02d1c1a..e90eb79 100755 --- a/scripts/pgsql/create_fk.sh.in +++ b/scripts/pgsql/create_fk.sh.in @@ -2,4 +2,4 @@ source @TOPDIR@/scripts/pgsql/build_param.sh -psql -h $SERVER_IP -p $SERVER_PORT -f @TOPDIR@/scripts/pgsql/create_fk.sql +psql -h $SERVER_IP -p $SERVER_PORT -f @TOPDIR@/scripts/pgsql/create_fk.sql $SID1 diff --git a/scripts/pgsql/load_db.sh.in b/scripts/pgsql/load_db.sh.in index dc7e532..5561212 100755 --- a/scripts/pgsql/load_db.sh.in +++ b/scripts/pgsql/load_db.sh.in @@ -15,7 +15,7 @@ source @TOPDIR@/scripts/pgsql/build_param.sh #data transfer, this process takes a lot of time ...;( #all the results are put in the same folder as the *.data files -if [ "$DATAGEN_USE" = "ON" ] +if [ "$COPYFROM_USE" = "OFF" ] then sh @TOPDIR@/scripts/pgsql/data_transfer.sh @TOPDIR@/datagen/country.data.pgsql country sh @TOPDIR@/scripts/pgsql/data_transfer.sh @TOPDIR@/scripts/pgsql/resultsql/author.data author @@ -26,16 +26,19 @@ if [ "$DATAGEN_USE" = "ON" ] sh @TOPDIR@/scripts/pgsql/data_transfer.sh @TOPDIR@/scripts/pgsql/resultsql/item.data item sh @TOPDIR@/scripts/pgsql/data_transfer.sh @TOPDIR@/scripts/pgsql/resultsql/stock.data stock sh @TOPDIR@/scripts/pgsql/data_transfer.sh @TOPDIR@/scripts/pgsql/resultsql/customer.data customer + #data is loaded with file transferred + #then load the data... + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/country.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/author.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/orders.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/order_line.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/cc_xacts.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/address.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/item.sql + # pgxc additional stock table + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/stock.sql + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/customer.sql +else + #load data with copy... by default also + psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/copy.sql fi - -#then load the data... -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/country.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/author.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/orders.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/order_line.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/cc_xacts.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/address.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/item.sql -# pgxc additional stock table -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/stock.sql -psql -p $SERVER_PORT -h $SERVER_IP -d $SID1 -f @TOPDIR@/scripts/pgsql/resultsql/customer.sql diff --git a/scripts/pgsql/load_dbproc.sh.in b/scripts/pgsql/load_dbproc.sh.in index 55531d8..65b7f69 100755 --- a/scripts/pgsql/load_dbproc.sh.in +++ b/scripts/pgsql/load_dbproc.sh.in @@ -1,5 +1,4 @@ #!/bin/sh source @TOPDIR@/scripts/pgsql/build_param.sh - -psql -h $SERVER_IP -p $SERVER_PORT -d $SID1 -f /home/michael/workdbt1/scripts/pgsql/create_sequence.sql +psql -h $SERVER_IP -p $SERVER_PORT -d $SID1 -f @TOPDIR@/scripts/pgsql/create_sequence.sql ----------------------------------------------------------------------- Summary of changes: datagen/main.c.in | 22 +++++++++++----------- scripts/pgsql/build_db.sh.in | 21 ++++++++++----------- scripts/pgsql/build_param.sh.in | 6 ++++-- scripts/pgsql/create_fk.sh.in | 2 +- scripts/pgsql/load_db.sh.in | 29 ++++++++++++++++------------- scripts/pgsql/load_dbproc.sh.in | 3 +-- 6 files changed, 43 insertions(+), 40 deletions(-) hooks/post-receive -- DBT-1/Postgres-XC |
From: mason_s <ma...@us...> - 2010-05-15 22:39:44
|
Project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via b075a9e103648e81c680e47210e43cbc71b5d958 (commit) from ebcf8ba26b55a522b1a3e320064a35338edca83d (commit) - Log ----------------------------------------------------------------- commit b075a9e103648e81c680e47210e43cbc71b5d958 Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Sat May 15 18:37:59 2010 -0400 Fix some assertion failures. Also put back in setting of RecentXmin and RecentGlobalXmin for the Coordinator. Written by Pavan & Mason. diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 9599b59..757f99d 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -1702,6 +1702,7 @@ CommitTransaction(void) */ DataNodeCommit(DestNone); CommitTranGTM(s->globalTransactionId); + latestXid = s->globalTransactionId; } else if (IS_PGXC_DATANODE) { @@ -2147,6 +2148,7 @@ AbortTransaction(void) */ DataNodeRollback(DestNone); RollbackTranGTM(s->globalTransactionId); + latestXid = s->globalTransactionId; } else if (IS_PGXC_DATANODE) { diff --git a/src/backend/pgxc/pool/poolmgr.c b/src/backend/pgxc/pool/poolmgr.c index e386b2b..79106b5 100644 --- a/src/backend/pgxc/pool/poolmgr.c +++ b/src/backend/pgxc/pool/poolmgr.c @@ -563,7 +563,7 @@ agent_create(void) void PoolManagerConnect(PoolHandle *handle, const char *database) { - Assert(Handle); + Assert(handle); Assert(database); /* Save the handle */ @@ -1063,7 +1063,7 @@ acquire_connection(DatabasePool *dbPool, int node) DataNodePoolSlot *slot; Assert(dbPool); - Assert(0 <= node && node < NumDataNodes); + Assert(0 < node && node <= NumDataNodes); slot = NULL; /* Find referenced node pool */ diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 4616475..be24657 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -296,6 +296,13 @@ ProcArrayEndTransaction(PGPROC *proc, TransactionId latestXid) * anyone else's calculation of a snapshot. We might change their * estimate of global xmin, but that's OK. */ +#ifdef PGXC + /* + * Removed this assertion check for PGXC on the Coordinator + * We could abort before the Coordinator has obtained a GXID + */ + if (IS_PGXC_DATANODE) +#endif Assert(!TransactionIdIsValid(proc->xid)); proc->lxid = InvalidLocalTransactionId; @@ -1645,11 +1652,13 @@ GetSnapshotDataCoordinator(Snapshot snapshot) ereport(ERROR, (errcode(ERRCODE_CONNECTION_FAILURE), errmsg("GTM error, could not obtain snapshot"))); - else { + else + { snapshot->xmin = gtm_snapshot->sn_xmin; snapshot->xmax = gtm_snapshot->sn_xmax; snapshot->recent_global_xmin = gtm_snapshot->sn_recent_global_xmin; snapshot->xcnt = gtm_snapshot->sn_xcnt; + RecentGlobalXmin = gtm_snapshot->sn_recent_global_xmin; elog(DEBUG1, "from GTM: xmin = %d, xmax = %d, xcnt = %d, RecGlobXmin = %d", snapshot->xmin, snapshot->xmax, snapshot->xcnt, snapshot->recent_global_xmin); /* @@ -1715,6 +1724,7 @@ GetSnapshotDataCoordinator(Snapshot snapshot) * * !!TODO */ + RecentXmin = snapshot->xmin; /* PGXCTODO - set this until we handle subtransactions. */ snapshot->subxcnt = 0; ----------------------------------------------------------------------- Summary of changes: src/backend/access/transam/xact.c | 2 ++ src/backend/pgxc/pool/poolmgr.c | 4 ++-- src/backend/storage/ipc/procarray.c | 12 +++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |
From: mason_s <ma...@us...> - 2010-05-14 17:40:56
|
Project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via ebcf8ba26b55a522b1a3e320064a35338edca83d (commit) from 646c894d6e5c6a9fc53802f022c3f8cf147f82ed (commit) - Log ----------------------------------------------------------------- commit ebcf8ba26b55a522b1a3e320064a35338edca83d Author: Mason S <mas...@ma...> Date: Fri May 14 13:38:45 2010 -0400 By default have configure set CFLAGS to use -DPGXC, which is required for Postgres-XC to compile. genbki.sh is changed to assume this is set, but will now check for -UPGXC in case the user wanted to override this. diff --git a/configure b/configure index 650799a..503ef2a 100755 --- a/configure +++ b/configure @@ -30,7 +30,8 @@ esac fi - +# For PGXC, set -DPGXC by default. This can be overriden with -UPGXC if the user sets it. +CFLAGS="$CFLAGS -DPGXC" # PATH needs CR diff --git a/src/backend/catalog/genbki.sh b/src/backend/catalog/genbki.sh index 429d254..e3779be 100644 --- a/src/backend/catalog/genbki.sh +++ b/src/backend/catalog/genbki.sh @@ -23,6 +23,7 @@ : ${AWK='awk'} CMDNAME=`basename $0` +DIRNAME=`dirname $0` INCLUDE_DIRS= OUTPUT_PREFIX= @@ -143,12 +144,13 @@ touch ${OUTPUT_PREFIX}.shdescription.$$ # Also handle #ifdef PGXC to preprocess header files. # ---------------- # -#See if PGXC is defined in CFLAGS -PGXCdefined=0 -echo $CFLAGS | grep "\-DPGXC" >/dev/null +#See if PGXC is undefined (assume it is defined by default) +PGXCdefined=1 +#echo $CFLAGS | grep "\-UPGXC" >/dev/null +grep "\-UPGXC" $DIRNAME/../../Makefile.global >/dev/null if [ $? -eq 0 ] then - PGXCdefined=1 + PGXCdefined=0 fi cat $INFILES | \ $AWK ' ----------------------------------------------------------------------- Summary of changes: configure | 3 ++- src/backend/catalog/genbki.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |
From: mason_s <ma...@us...> - 2010-05-13 21:45:23
|
A ref change was pushed to the repository containing the project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via 646c894d6e5c6a9fc53802f022c3f8cf147f82ed (commit) from 8326f6191831f73d8ee5cae845bc29c879f8ffb3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 646c894d6e5c6a9fc53802f022c3f8cf147f82ed Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Thu May 13 17:44:00 2010 -0400 Fixed a bug where if many errors occur we run out of on_proc_exit slots. Moved up the call to be above setting sigjmp ----------------------------------------------------------------------- Summary of changes: src/backend/tcop/postgres.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |
From: mason_s <ma...@us...> - 2010-05-13 20:24:01
|
A ref change was pushed to the repository containing the project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via 8326f6191831f73d8ee5cae845bc29c879f8ffb3 (commit) from fd209fa492b16386f6a00b32dd1d9bf1353a172f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8326f6191831f73d8ee5cae845bc29c879f8ffb3 Author: Mason S <masonsharp@mason-sharps-macbook.local> Date: Thu May 13 14:21:44 2010 -0400 Added support for basic aggregate handling. Aggregates with GROUP BY are not supported, nor are expressions of aggregates like "2 * COUNT(*)". Such support will be added in the future. PostgreSQL aggregates have two steps, a transition step, then a finalizer step. Postgres-XC introduces a collection step. The Coordinator accepts the results from the Data Node after the transition step, combines and applies the finalizer step on the Coordinator. This required extending the pg_aggregate table to handle the collector functions with new columns: aggcollectfn â the collection function. Column type is regproc, nulls are not allowed aggcollecttype â the collection data type. Column type is oid, nulls are not allowed agginitcollect â initial value for the collection function. Column type is text, nulls are allowed. Below is the list of aggregate functions supported by Postgres-XC: avg sum max min count var_pop var_samp variance stddev_pop stddev_samp stddev regr_count regr_sxx regr_syy regr_sxy regr_avgx regr_avgy regr_r2 regr_slope regr_intercept covar_pop covar_samp corr bool_and bool_or every bit_and bit_or xmlagg We are continuing to use blocks of #ifdef PGXC code for XC changes. the genbki.sh script in src/backend/catalog was changed so that the header files can be processed with or without PGXC defined. Designed and written by Andrei Martsinchyk, with small modifications by me. ----------------------------------------------------------------------- Summary of changes: src/backend/catalog/genbki.sh | 19 ++ src/backend/catalog/pg_aggregate.c | 73 +++++++- src/backend/commands/aggregatecmds.c | 49 +++++ src/backend/executor/nodeAgg.c | 5 + src/backend/executor/nodeWindowAgg.c | 3 +- src/backend/parser/parse_agg.c | 32 +++- src/backend/pgxc/plan/planner.c | 233 ++++++++++++++++++---- src/backend/pgxc/pool/combiner.c | 356 +++++++++++++++++++++++----------- src/backend/utils/adt/float.c | 130 ++++++++++++ src/backend/utils/adt/numeric.c | 117 +++++++++++- src/backend/utils/adt/timestamp.c | 62 ++++++- src/include/catalog/catversion.h | 4 + src/include/catalog/duplicate_oids | 2 +- src/include/catalog/pg_aggregate.h | 213 ++++++++++++++++++++ src/include/catalog/pg_proc.h | 14 ++ src/include/catalog/unused_oids | 2 +- src/include/pgxc/combiner.h | 5 + src/include/pgxc/planner.h | 54 +++++- src/include/utils/builtins.h | 15 ++ src/include/utils/timestamp.h | 3 + 20 files changed, 1227 insertions(+), 164 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |
From: Pavan D. <pa...@us...> - 2010-05-13 02:29:48
|
A ref change was pushed to the repository containing the project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via fd209fa492b16386f6a00b32dd1d9bf1353a172f (commit) from 1dcc0249cc7d58f024192717cefa8c841494e60e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit fd209fa492b16386f6a00b32dd1d9bf1353a172f Author: Pavan Deolasee <pav...@gm...> Date: Wed May 12 19:28:26 2010 -0700 Fix an assertion failure in the GTM code. We were mistakenly overwriting an union member after the recent changes for snapshot grouping. ----------------------------------------------------------------------- Summary of changes: src/gtm/client/fe-protocol.c | 6 +++--- src/gtm/client/gtm_client.c | 2 +- src/include/gtm/gtm_client.h | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |
From: Pavan D. <pa...@us...> - 2010-05-13 01:58:00
|
A ref change was pushed to the repository containing the project "Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster". The branch, master has been updated via 1dcc0249cc7d58f024192717cefa8c841494e60e (commit) from ae79d556dc119885cc529eeaf8fc81b57eb116b0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1dcc0249cc7d58f024192717cefa8c841494e60e Author: Pavan Deolasee <pavan@ubuntu.(none)> Date: Wed May 12 18:55:34 2010 -0700 Fix some stylistic issues with the code. Trying to make it more consistent in general and with Postgres code in particular ----------------------------------------------------------------------- Summary of changes: src/backend/access/transam/gtm.c | 16 +++--- src/backend/catalog/pgxc_class.c | 14 +++-- src/backend/pgxc/locator/locator.c | 17 +++--- src/backend/pgxc/plan/planner.c | 49 ++++++-------- src/backend/pgxc/pool/combiner.c | 2 +- src/backend/pgxc/pool/datanode.c | 119 ++++++++++++++++------------------- src/backend/pgxc/pool/poolcomm.c | 26 ++++---- src/backend/pgxc/pool/poolmgr.c | 73 +++++++++------------- src/backend/postmaster/postmaster.c | 2 +- src/include/pgxc/locator.h | 16 +++--- src/include/pgxc/planner.h | 15 ++--- src/include/pgxc/poolcomm.h | 20 +++--- src/include/pgxc/poolmgr.h | 18 +++--- 13 files changed, 178 insertions(+), 209 deletions(-) hooks/post-receive -- Postgres-XC: write-scalable synchronous multi-master PostgreSQL cluster |