1. 22 3月, 2016 13 次提交
    • H
      Support explicit cast for ARRAY[] constructor · 3ab62529
      Haozhou Wang 提交于
      Backport below commits from upstream:
      
          commit adac22bf
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Fri Dec 19 05:04:35 2008 +0000
      
              When we added the ability to have zero-element ARRAY[] constructs by adding an
              explicit cast to show the intended array type, we forgot to teach ruleutils.c
              to print out such constructs properly.  Found by noting bogus output from
              recent changes in polymorphism regression test.
      
          commit 30137bde6db48a8b8c1ffc736eb239bd7381f04d
          Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
          Date:   Fri Nov 13 19:48:26 2009 +0000
      
              A better fix for the "ARRAY[...]::domain" problem. The previous patch worked,
              but the transformed ArrayExpr claimed to have a return type of "domain",
              even though the domain constraint was only checked by the enclosing
              CoerceToDomain node. With this fix, the ArrayExpr is correctly labeled with
              the base type of the domain. Per gripe by Tom Lane.
      
          commit 6b0706ac
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Thu Mar 20 21:42:48 2008 +0000
      
              Arrange for an explicit cast applied to an ARRAY[] constructor to be applied
              directly to all the member expressions, instead of the previous implementation
              where the ARRAY[] constructor would infer a common element type and then we'd
              coerce the finished array after the fact.  This has a number of benefits,
              one being that we can allow an empty ARRAY[] construct so long as its
              element type is specified by such a cast.
      
      Besides, this commit also adds 'location' field in array related
      structures, but they are not actived yet. Thanks to Heikki's suggestion.
      3ab62529
    • A
      Fix a bug in creating the demo cluster · 16abad91
      Andreas Scherbaum 提交于
      This bug was introduced in fd2e045f.
      
      Thanks to Shoaib Lari for pointing this out.
      16abad91
    • C
      Modifying output of gpcheckcat to include the name of the test on the same... · 7673c4b4
      Chumki Roy 提交于
      Modifying output of gpcheckcat to include the name of the test on the same line to make grepping easier
      7673c4b4
    • A
      Remove ignored error message when building demo cluster · 5e0eb9f8
      Andreas Scherbaum 提交于
      This patch slightly changes the way the demo cluster is built.
      A gpinitdbsystem return code of 1 (warning) is ignored, and the script
      exits with return code 0. Any error code greather than that is returned.
      The Makefile is no longer ignoring errors.
      
      This will fix #456.
      5e0eb9f8
    • A
      Make data directory and TCP ports for demo cluster configurable on the fly · fd2e045f
      Andreas Scherbaum 提交于
      The data directory and the TCP ports can be changed when "make cluster" is
      executed to build the demo cluster:
      
      DATADIRS=/tmp/gpdb-cluster MASTER_PORT=15432 PORT_BASE=25432 make cluster
      
      This fixes #441 and #442
      
      Also make the TCP port for the regression tests configurable.
      fd2e045f
    • K
    • H
      Remove bogus function definitions. · 6d425f44
      Heikki Linnakangas 提交于
      These were added by merge commit 60f45387, but we had backported a later
      version of this file already, where these static functions had been removed
      again.
      6d425f44
    • H
      Convert a few Value fields that are always of type String into "char *". · fce4fcc9
      Heikki Linnakangas 提交于
      This saves a little bit of memory when parsing massively partitioned
      CREATE TABLE statements.
      fce4fcc9
    • H
      Remove unnecessary 'need_free' argument from defGetString(). · e520d50c
      Heikki Linnakangas 提交于
      All of the callers are in places where leaking a few bytes of memory to
      the current memory context will do no harm. Either parsing, or processing
      a DDL command, or planning. So let's simplify the callers by removing the
      argument. That makes the code match the upstream again, which makes merging
      easier.
      
      These changes were originally made to reduce the memory consumption when
      doing parse analysis on a heavily partitioned table, but the previous
      commit provided a more whole-sale solution for that, so we don't need to
      nickel-and-dime every allocation anymore.
      e520d50c
    • H
      Use a temporary memory context while parsing parts of a CreateStmt. · 74098d27
      Heikki Linnakangas 提交于
      With a heavily partitioned table, the parse analysis of each CreateStmt
      consumes significant amounts of memory. By using a temporary memory
      context, we can reclaim some of the garbage left behind by the parsing of
      each one. In very quick testing on my laptop, this reduces the memory
      consumption of parse analysis of a massively-partitioned CREATE TABLE by
      about 10%, but YMMV.
      
      To make this work, transformAttributeEncoding() and its subroutines have
      to be more careful to not modify the input CreateStmt, as any new Nodes
      stored in it would be allocated in the temporary context and be blown away
      at the end of transformCreateStmt. That's not cool, if there are more
      partitions to process, which rely on the same CreateStmt.
      74098d27
    • E
      Update gpAux/Client SHA1 pointing to GitHub repo. · 26983d44
      Ed Espino 提交于
      26983d44
    • F
    • F
  2. 21 3月, 2016 1 次提交
  3. 17 3月, 2016 1 次提交
  4. 19 3月, 2016 8 次提交
  5. 18 3月, 2016 5 次提交
  6. 16 3月, 2016 5 次提交
  7. 15 3月, 2016 3 次提交
    • C
      Update and add test for gpdbrestore AO/CO stat update · 0914d764
      Chris Hajas 提交于
      * Fix stat check for older behave test:
          Used to rely on gp_restore to do the stat update, but is now on
          python.
      * Fix the tests to indiviudally check the statistics for each
      partition table as the top level table does not gather statistics from its
      subpartitions.
      * Add specific gpdbrestore -T stat update check
      * Add specific gpdbrestore -S stat update check
      
      Add unit tests for generating the correct tables to restore.
      
      Authors: Marbin Tan & Chris Hajas
      0914d764
    • M
      Fix gp_update_ao_master_stats for gpdbrestore with full backup. · 3fb6ca82
      Marbin Tan 提交于
      When doing a restore of a specific table or a specific schema (-T or -S)
      with a full backup, it will update all statistics for all AO/CO tables; it should
      update only the specified table/schema.
      
      Moved gp_update_ao_master_stats from the C side to the python code.
      gpdbrestore -T and -S will now update AO/CO stats through the python code
      
      Authors: Marbin Tan & Chris Hajas
      3fb6ca82
    • C
      Fixes NoneType error where schema tries to iterate through empty dump · c992c450
      Christopher Hajas 提交于
      file.
      
      Authors: Marbin Tan, Chris Hajas and Pencheng Tang
      c992c450
  8. 14 3月, 2016 4 次提交