Fix Greenplum support for column oriented partitions [Chuck McDevitt]
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 8 Oct 2009 14:42:09 +0000 (14:42 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 8 Oct 2009 14:42:09 +0000 (14:42 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@8065 a7884b65-44f6-0310-8a51-81a127f17b15

CHANGELOG
pgadmin/include/schema/pgTable.h
pgadmin/schema/gpPartition.cpp
pgadmin/schema/pgTable.cpp

index 7ff6ecfe97fc1c5b77d1b7141ee1558fe332001e..1087be300606dbd8527c9bd5665b90926d3c263c 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -36,6 +36,8 @@ Changes
 
 Date       Dev Ver     Change details
 ---------- --- ------  --------------
+2009-10-08 DP  1.10.1  Fix Greenplum support for column oriented partitions
+                       [Chuck McDevitt]
 2009-10-05 DP  1.10.1  Ensure function variables get reset if the function is
                        modified, per Dmitry Samokhin.
 2009-10-01 DP  1.10.1  Fix cluster creation for Slony 2.0 [Sachin Srivastava]
index a771ffd923c33290e8a8890db4b6ca2f79c8efc1..072a0f8687533fe236e0d724795b67b15da1c6b9 100644 (file)
@@ -103,8 +103,8 @@ public:
     void iSetAppendOnly(const wxString& s) { appendOnly = s; }
     wxString GetCompressLevel() { return compressLevel; }
     void iSetCompressLevel(const wxString& s) { compressLevel = s; }
-    wxString GetIsColumnStore() { return columnstore; }
-    void iSetIsColumnStore(const wxString& s) { columnstore = s; }
+    wxString GetOrientation() { return orientation; }
+    void iSetOrientation(const wxString& s) { orientation = s; }
     wxString GetCompressType() { return compresstype; }
     void iSetCompressType(const wxString& s) { compresstype = s; };
     wxString GetBlocksize() { return blocksize; }
@@ -209,7 +209,7 @@ private:
              autovacuum_freeze_max_age, autovacuum_freeze_table_age;
     wxString appendOnly;
     wxString compressLevel;
-    wxString columnstore;
+    wxString orientation;  // "row" or "column"
     wxString compresstype;
     wxString blocksize;
     wxString checksum;
index 282e1d337c0e92e4d7b51b584fe9b8f42f05a279..fe41db304258430fb5b48c2d5e9f9793b1e58699 100644 (file)
@@ -119,7 +119,7 @@ pgObject *gpPartitionFactory::CreateObjects(pgCollection *coll, ctlTree *browser
        query += wxT(", gpd.localoid, gpd.attrnums \n");
        query += wxT(", substring(array_to_string(reloptions, ',') from 'appendonly=([a-z]*)') AS appendonly \n");
        query += wxT(", substring(array_to_string(reloptions, ',') from 'compresslevel=([0-9]*)') AS compresslevel \n");
-    query += wxT(", substring(array_to_string(reloptions, ',') from 'columnstore=([a-z]*)') AS columnstore \n");
+    query += wxT(", substring(array_to_string(reloptions, ',') from 'orientation=([a-z]*)') AS orientation \n");
     query += wxT(", substring(array_to_string(reloptions, ',') from 'compresstype=([a-z0-9]*)') AS compresstype \n");
     query += wxT(", substring(array_to_string(reloptions, ',') from 'blocksize=([0-9]*)') AS blocksize \n");
     query += wxT(", substring(array_to_string(reloptions, ',') from 'checksum=([a-z]*)') AS checksum \n");
@@ -185,7 +185,7 @@ pgObject *gpPartitionFactory::CreateObjects(pgCollection *coll, ctlTree *browser
                                table->iSetDistributionIsRandom();
                        table->iSetAppendOnly(tables->GetVal(wxT("appendonly")));
                        table->iSetCompressLevel(tables->GetVal(wxT("compresslevel")));
-            table->iSetIsColumnStore(tables->GetVal(wxT("columnstore")));
+            table->iSetOrientation(tables->GetVal(wxT("orientation")));
             table->iSetCompressType(tables->GetVal(wxT("compresstype")));
             table->iSetBlocksize(tables->GetVal(wxT("blocksize")));
             table->iSetChecksum(tables->GetVal(wxT("checksum")));
index b8f787e139e53280c657cc3466c4aee86bfeadf9..84565d3c7f37cae6df0bc20eda9c4cd2071ffaf1 100644 (file)
@@ -348,8 +348,8 @@ wxString pgTable::GetSql(ctlTree *browser)
                 sql += wxT("APPENDONLY=") + GetAppendOnly() + wxT(", ");
             if (GetCompressLevel().Length() > 0)
                 sql += wxT("COMPRESSLEVEL=") + GetCompressLevel() + wxT(", ");
-            if (GetIsColumnStore().Length() > 0)
-                sql += wxT("COLUMNSTORE=") + GetIsColumnStore() + wxT(", ");
+            if (GetOrientation().Length() > 0)
+                sql += wxT("ORIENTATION=") + GetOrientation() + wxT(", ");
             if (GetCompressType().Length() > 0)
                 sql += wxT("COMPRESSTYPE=") + GetCompressType() + wxT(", ");
             if (GetBlocksize().Length() > 0)
@@ -1227,7 +1227,7 @@ pgObject *pgTableFactory::CreateObjects(pgCollection *collection, ctlTree *brows
             query += wxT(", gpd.localoid, gpd.attrnums \n");
             query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'appendonly=([a-z]*)') AS appendonly \n");
             query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'compresslevel=([0-9]*)') AS compresslevel \n");
-            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'columnstore=([a-z]*)') AS columnstore \n");
+            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'orientation=([a-z]*)') AS orientation \n");
             query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'compresstype=([a-z0-9]*)') AS compresstype \n");
             query += wxT(", substring(array_to_string(reloptions, ',') from 'blocksize=([0-9]*)') AS blocksize \n");
             query += wxT(", substring(array_to_string(reloptions, ',') from 'checksum=([a-z]*)') AS checksum \n");
@@ -1397,7 +1397,7 @@ pgObject *pgTableFactory::CreateObjects(pgCollection *collection, ctlTree *brows
                     table->iSetDistributionIsRandom();
                 table->iSetAppendOnly(tables->GetVal(wxT("appendonly")));
                 table->iSetCompressLevel(tables->GetVal(wxT("compresslevel")));
-                table->iSetIsColumnStore(tables->GetVal(wxT("columnstore")));
+                table->iSetOrientation(tables->GetVal(wxT("orientation")));
                 table->iSetCompressType(tables->GetVal(wxT("compresstype")));
                 table->iSetBlocksize(tables->GetVal(wxT("blocksize")));
                 table->iSetChecksum(tables->GetVal(wxT("checksum")));