~ubuntu-branches/ubuntu/maverick/pgadmin3/maverick

« back to all changes in this revision

Viewing changes to pgadmin/schema/pgTable.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-12-17 20:34:00 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20091217203400-tlnmt4m3v7udjp0h
Tags: 1.10.1-1
* New upstream release, containing fix for:
  - default value in function parameters not shown (closes: #547940)
  - cannot open files without dot in names for restore (closes: #451038)
* Suggest postgresql-contrib (closes: #503291)
* Set myself as Maintainer and remove Raphael. Thanks for his work so far.
* Switch Uploaders and Maintainer role to better describe reality.
* Bump to Standards-Version to 3.8.3.
* Update to debhelper level 7, use dh_prep instead of dh_clean -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: pgTable.cpp 7940 2009-06-23 12:07:27Z dpage $
 
4
// RCS-ID:      $Id: pgTable.cpp 8071 2009-10-21 19:00:25Z dpage $
5
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
6
// This software is released under the BSD Licence
7
7
//
348
348
                sql += wxT("APPENDONLY=") + GetAppendOnly() + wxT(", ");
349
349
            if (GetCompressLevel().Length() > 0)
350
350
                sql += wxT("COMPRESSLEVEL=") + GetCompressLevel() + wxT(", ");
351
 
            if (GetIsColumnStore().Length() > 0)
352
 
                sql += wxT("COLUMNSTORE=") + GetIsColumnStore() + wxT(", ");
 
351
            if (GetOrientation().Length() > 0)
 
352
                sql += wxT("ORIENTATION=") + GetOrientation() + wxT(", ");
353
353
            if (GetCompressType().Length() > 0)
354
354
                sql += wxT("COMPRESSTYPE=") + GetCompressType() + wxT(", ");
355
355
            if (GetBlocksize().Length() > 0)
817
817
        CreateListColumns(properties);
818
818
 
819
819
        properties->AppendItem(_("Name"), GetName());
 
820
        if (GetConnection() != 0 && GetConnection()->GetIsGreenplum())
 
821
        {
 
822
            gpPartition * p = dynamic_cast<gpPartition *>(this);
 
823
            if (p != 0)
 
824
                properties->AppendItem(_("Partition Name"), p->GetPartitionName());   
 
825
        }
820
826
        properties->AppendItem(_("OID"), GetOid());
821
827
        properties->AppendItem(_("Owner"), GetOwner());
822
828
        if (GetConnection()->BackendMinimumVersion(8, 0))
1221
1227
            query += wxT(", gpd.localoid, gpd.attrnums \n");
1222
1228
            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'appendonly=([a-z]*)') AS appendonly \n");
1223
1229
            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'compresslevel=([0-9]*)') AS compresslevel \n");
1224
 
            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'columnstore=([a-z]*)') AS columnstore \n");
 
1230
            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'orientation=([a-z]*)') AS orientation \n");
1225
1231
            query += wxT(", substring(array_to_string(rel.reloptions, ',') from 'compresstype=([a-z0-9]*)') AS compresstype \n");
1226
1232
            query += wxT(", substring(array_to_string(reloptions, ',') from 'blocksize=([0-9]*)') AS blocksize \n");
1227
1233
            query += wxT(", substring(array_to_string(reloptions, ',') from 'checksum=([a-z]*)') AS checksum \n");
1391
1397
                    table->iSetDistributionIsRandom();
1392
1398
                table->iSetAppendOnly(tables->GetVal(wxT("appendonly")));
1393
1399
                table->iSetCompressLevel(tables->GetVal(wxT("compresslevel")));
1394
 
                table->iSetIsColumnStore(tables->GetVal(wxT("columnstore")));
 
1400
                table->iSetOrientation(tables->GetVal(wxT("orientation")));
1395
1401
                table->iSetCompressType(tables->GetVal(wxT("compresstype")));
1396
1402
                table->iSetBlocksize(tables->GetVal(wxT("blocksize")));
1397
1403
                table->iSetChecksum(tables->GetVal(wxT("checksum")));
1520
1526
 
1521
1527
bool executePgstattupleFactory::CheckChecked(pgObject *obj)
1522
1528
{
1523
 
    return obj && ((pgTable*)obj)->GetShowExtendedStatistics();
 
1529
    return obj && obj->IsCreatedBy(tableFactory) && ((pgTable*)obj)->GetShowExtendedStatistics();
1524
1530
}
1525
1531
 
1526
1532
disableAllTriggersFactory::disableAllTriggersFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar) : contextActionFactory(list)