1. 27 2月, 2017 6 次提交
  2. 26 2月, 2017 14 次提交
    • D
      Remove incorrect version check in binary upgrade dumps · 6f6f00f6
      Daniel Gustafsson 提交于
      We must support older than 80300 in dumping pg_type Oid's in order
      to support upgrades from 4.3. Remove bogus check inherited from
      upstream PostgreSQL where 8.3 is the earliest version supported by
      pg_upgrade. Replace with a check for 8.2 as the base version in
      the main binary upgrade dump function and explain the difference
      to upstream.
      6f6f00f6
    • D
      Avoid creating empty ArchiveEntry · 873890c1
      Daniel Gustafsson 提交于
      In case there were no auxiliary relations associated with the rel
      oid then skip adding the Archive entry to not have blank entries
      in the dump with just a header comment.
      873890c1
    • D
      De-duplicate oid projection in type oid dumping · 060f2b34
      Daniel Gustafsson 提交于
      The conrelid is equal to the oid (it's a join criteria after all).
      Perform a little bit of cleanup for clarity (and microoptimization)
      and don't project it into the result.
      060f2b34
    • D
      Port Bugbuster gpsort suite to ICW sort · 92953cdc
      Daniel Gustafsson 提交于
      This moves over the queries worth keeping from Bugbuster gpsort to
      ICW sort. Many of the queries returned a single row, no rows at all
      or even had syntax errors, all of which are uninteresting cases for
      testing result sorting. All rows in the test table are distributed
      to a single segment to keep the sort order stable during testing.
      
      Also remove pointless ignore blocks from sort and avoid dropping
      the schema at the end so shave some time off.
      92953cdc
    • D
      Remove extended ALTER TABLE INHERIT syntax · 3e90e6a9
      Daniel Gustafsson 提交于
      The gp_enable_alter_table_inherit_cols GUC was used to allow a list
      of columns to override the attribute discovery for inheritance in
      ALTER TABLE INHERIT. According to code comments the only consumer
      of this was gpmigrator, but no callsite remains and no support in
      pg_dumpall remains either. Remove the leftovers of this to avoid a
      potential footgun and get us closer to upstream code.
      3e90e6a9
    • D
      Fix typo in comment · e1cca79d
      Daniel Gustafsson 提交于
      e1cca79d
    • D
      Port TINC gpmapreduce tests to ICW · 4e4149de
      Daniel Gustafsson 提交于
      TINC had a lot of gpmapreduce tests which weren't connected to any
      build or pipeline, resurrect (some of) these by porting over to the
      mapred suite in ICW.
      
      This is by no means a direct copy of the existing TINC testsuites,
      but instead a partial port of the tests that made sense to bring
      over. A lot of the tests were highly overlapping, some completely
      broken, some were testing functionality ICW already had tests for
      and others plain uninteresting.
      4e4149de
    • D
      Remove gp_external_grant_privileges · 1e20c783
      Daniel Gustafsson 提交于
      The gp_external_grant_privileges GUC was needed before 4.0 to let
      non superusers create external tables for gphdfs and http protocols.
      This GUC was however deprecated during the 4.3 cycle so remove all
      traces of it. The utility of the GUC was replaced in 4.0 when rights
      management for external tables was implemented with the normal GRANT
      REVOKE framework so this has been dead code for quite some time.
      
      Remove GUC, code which handles it, all references to it from the
      documentation and a release notes entry.
      1e20c783
    • D
      Add a placeholder release notes entry for GUC removal · 438cfedd
      Daniel Gustafsson 提交于
      Release notes entry for the removal of gp_hashagg_compress_spill_files,
      gp_eager_hashtable_release, max_work_mem and gp_hash_index.
      438cfedd
    • D
      Remove deprecated memory control GUCs · 8442a4dc
      Daniel Gustafsson 提交于
      The gp_eager_hashtable_release GUC was deprecated in version 4.2
      in 2011 when the generic eager free framework was implemented. The
      leftover gp_eager_hashtable_release was asserted to be true and
      never intended to be turned off. The same body of work deprecated
      the max_work_mem setting which was bounding the work_mem setting.
      While not technically tied to eager hashtable release, remove as
      well since it's deprecated, undocumented and not terribly useful.
      
      Relevant commit in closed source repo is 88986b7d
      8442a4dc
    • D
      Remove deprecated gp_hashagg_compress_spill_files GUC · 38922f15
      Daniel Gustafsson 提交于
      The gp_hashagg_compress_spill_files GUC was deprecated in 2010 when
      it was replaced by gp_workfile_compress_algorithm. The leftovers
      haven't done anything for quite some time so remove GUC.
      
      Relevant commit in closed source repo is c1ce9f03
      38922f15
    • H
      Revert subtransaction limit test case changes. · 0a0df140
      Heikki Linnakangas 提交于
      Revert commit ffc6226a and 1d31323a. It failed on concourse.
      0a0df140
    • H
      Try to fix subtransaction limit tests. · 1d31323a
      Heikki Linnakangas 提交于
      In commit ffc6226a, I removed DROP + CREATE DATABASE from these tests.
      That didn't work, you now get "relation already exists" errors from, after
      the first test. I'm trying to fix this in the blind one more time, by
      changing the tests to use a separate schema, and DROP + CREATE the schema
      between each test. That's still a lot cheaper than dropping and creating
      a database.
      1d31323a
    • H
      Remove unnecessary DROP + CREATE DATABASE from tests. · ffc6226a
      Heikki Linnakangas 提交于
      The 'gptest' database was actually used by the tests. CREATE DATABASE is
      a fairly expensive operation, so let's avoid doing it without a good
      reason.
      
      I don't actually have means to test this properly, so I'm going to push
      this in blind and see what Concourse thinks of it. If something goes awry,
      I'll revert.
      ffc6226a
  3. 25 2月, 2017 17 次提交
  4. 24 2月, 2017 3 次提交
    • D
      Remove dead code · 0c0ed8d2
      Daniel Gustafsson 提交于
      This was commented out close to 10 years ago so it seems about time
      to retire this to the attic.
      0c0ed8d2
    • D
      Partitioning code cleanup · 32745494
      Daniel Gustafsson 提交于
      This applies minor cosmetic cleanup to the partition code stemming
      from a read-through. There are no functional changes from this:
      
        * Remove stale comments and reflow existing ones as well as fix
          some typos
        * Remove spurious whitespace
        * Re-indent and rewrite where the logic isn't clear to improve
          readability (removing !!(foo) construction).
      32745494
    • D
      Remove useless StringInfo and truncate calls · 3d10d102
      Daniel Gustafsson 提交于
      There is no gain in calling truncateStringInfo() on a StringInfo
      which was just inited, it will always be no-op. Remove truncates
      from the partitioning codepath and save a cycle or two. Also
      remove two StringInfos where one were unused and the other could
      be replaced with a pstrdup() call.
      3d10d102