1. 14 4月, 2016 6 次提交
    • A
      Support complex number type · 9dd747ae
      Atri Sharma 提交于
      9dd747ae
    • P
      Fix memory overflow when number of distributed by columns exceed the limitation. · 3db8abf3
      Pengzhou Tang 提交于
      The maximal number of distributed by columns is 1600, gpdb should error out when
      it exceeds the limitation. Another thing is gpdb should allocate enough memory to
      hold those columns, otherwise it will cause memory overflow.
      3db8abf3
    • S
      Rename EatMalloc to EatTracker · 8ba61527
      Shreedhar Hardikar 提交于
      8ba61527
    • K
      Making database encoding functions available in pg_proc (#599) · e146381c
      Kuien Liu 提交于
      Three functions are available now:
      - convert_from(bytea, name) returns text
      - convert_to(text, name) returns bytea
      - length(bytea, name) returns int
      
      Related commits (partial codes are backported before OSS but not actived)
      
          commit a9742f12
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Wed Jan 9 23:43:54 2008 +0000
      
              Remove incorrect (and ill-advised anyway) pfree's in pg_convert_from and
              pg_convert_to.  Per bug #3866 from Andrew Gilligan.
      
          commit 02138357
          Author: Andrew Dunstan <andrew@dunslane.net>
          Date:   Mon Sep 24 01:29:30 2007 +0000
      
              Remove "convert 'blah' using conversion_name" facility, because if it
              produces text it is an encoding hole and if not it's incompatible
              with the spec, whatever the spec means (which we're not sure about anyway).
      
          commit 55613bf9
          Author: Andrew Dunstan <andrew@dunslane.net>
          Date:   Tue Sep 18 17:41:17 2007 +0000
      
              Close previously open holes for invalidly encoded data to enter the
              database via builtin functions, as recently discussed on -hackers.
      
              chr() now returns a character in the database encoding. For UTF8 encoded databases
              the argument is treated as a Unicode code point. For other multi-byte encodings
              the argument must designate a strict ascii character, or an error is raised,
              as is also the case if the argument is 0.
      
              ascii() is adjusted so that it remains the inverse of chr().
      
              The two argument form of convert() is gone, and the three argument form now
              takes a bytea first argument and returns a bytea. To cover this loss three new
              functions are introduced:
              . convert_from(bytea, name) returns text - converts the first argument from the
                named encoding to the database encoding
              . convert_to(text, name) returns bytea - converts the first argument from the
                database encoding to the named encoding
              . length(bytea, name) returns int - gives the length of the first argument in
                characters in the named encoding
      
          commit 75c6519f
          Author: Tatsuo Ishii <ishii@postgresql.org>
          Date:   Sun Mar 25 11:56:04 2007 +0000
      
              Add new encoding EUC_JIS_2004 and SHIFT_JIS_2004,
              along with new conversions among EUC_JIS_2004, SHIFT_JIS_2004 and UTF-8.
              catalog version has been bump up.
      
      Committers: Kuien Liu and Haozhou Wang
      e146381c
    • C
      Modified gpcheckcat to display tables having missing attributes in a · f569c1d1
      Christopher Hajas 提交于
      more readable format.
      
      Previously, gpcheckcat identified tables with missing attributes but
      displayed them in various locations in the output in a
      non-standardized format. This commit summarizes all the tables with missing
      attributes in one section at the end of the output in the format
      "[database].[schema].[table].[segment id]".
      
      Authors: Chris Hajas and Jamie McAtamney
      f569c1d1
    • F
      4d7a3fe1
  2. 13 4月, 2016 16 次提交
  3. 12 4月, 2016 5 次提交
    • A
      Improve error message when $GPHOME is not set. · f0ebf876
      Andreas Scherbaum 提交于
      Along the way, fix trailing tabs and split a long error
      message into two lines.
      
      This will fix #524
      f0ebf876
    • A
      Fix XML regression tests failure · 70a857dc
      Andreas Scherbaum 提交于
      A new version of libXML changes the output format, this patch
      adapts the new "expected" file introduced in
      PostgreSQL commit 085423e3.
      Slight modifications by me.
      
      This patch will not fail the current Pulse run in any way, because
      the Pulse systems do not yet use the new libXML library, and therefore
      are happy with xml.out and xml_1.out. I stripped down the regression
      tests and this is the output without the patch:
      
      parallel group (14 tests):  limit prepare conversion xml rowtypes copy2 polymorphism sequence without_oid temp truncate domain rangefuncs alter_table
           limit                ... ok (0,24 sec)  (diff:0,07 sec)
           copy2                ... ok (2,44 sec)  (diff:0,07 sec)
           temp                 ... ok (3,83 sec)  (diff:0,07 sec)
           domain               ... ok (7,12 sec)  (diff:0,10 sec)
           rangefuncs           ... ok (12,15 sec)  (diff:0,09 sec)
           prepare              ... ok (0,49 sec)  (diff:0,06 sec)
           without_oid          ... ok (3,49 sec)  (diff:0,07 sec)
           conversion           ... ok (1,19 sec)  (diff:0,17 sec)
           truncate             ... ok (4,03 sec)  (diff:0,06 sec)
           alter_table          ... ok (27,88 sec)  (diff:0,32 sec)
           sequence             ... ok (3,18 sec)  (diff:0,08 sec)
           polymorphism         ... ok (3,13 sec)  (diff:0,11 sec)
           rowtypes             ... ok (2,17 sec)  (diff:0,09 sec)
           xml                  ... FAILED (1,69 sec)  (diff:0,39 sec)
      test variadic_parameters  ... ok (1,57 sec)  (diff:0,07 sec)
      test default_parameters   ... ok (0,68 sec)  (diff:0,07 sec)
      
      =======================
       1 of 97 tests failed.
      =======================
      
      This is the output with the patch:
      
      parallel group (14 tests):  limit prepare conversion xml rowtypes copy2 polymorphism sequence without_oid temp truncate domain rangefuncs alter_table
           limit                ... ok (0,21 sec)  (diff:0,10 sec)
           copy2                ... ok (1,95 sec)  (diff:0,06 sec)
           temp                 ... ok (3,41 sec)  (diff:0,26 sec)
           domain               ... ok (6,67 sec)  (diff:0,19 sec)
           rangefuncs           ... ok (11,55 sec)  (diff:0,09 sec)
           prepare              ... ok (0,41 sec)  (diff:0,06 sec)
           without_oid          ... ok (2,91 sec)  (diff:0,06 sec)
           conversion           ... ok (0,96 sec)  (diff:0,15 sec)
           truncate             ... ok (3,62 sec)  (diff:0,09 sec)
           alter_table          ... ok (25,79 sec)  (diff:0,22 sec)
           sequence             ... ok (2,89 sec)  (diff:0,06 sec)
           polymorphism         ... ok (2,50 sec)  (diff:0,09 sec)
           rowtypes             ... ok (1,87 sec)  (diff:0,12 sec)
           xml                  ... ok (1,54 sec)  (diff:0,30 sec)
      test variadic_parameters  ... ok (1,43 sec)  (diff:0,07 sec)
      test default_parameters   ... ok (0,43 sec)  (diff:0,07 sec)
      
      ======================
       All 97 tests passed.
      ======================
      
      Fix #550
      70a857dc
    • H
      Remove gp_disable_catalog_access_on_segment GUC. · 2e8b036d
      Heikki Linnakangas 提交于
      It didn't do anything useful AFAICS.
      2e8b036d
    • A
    • J
      Change gpconfig exit status for option parsing. · 84f2c1e3
      Jimmy Yih 提交于
      Currently, the gpconfig utility is exiting with status 0 when one of
      the option parsing checks fail.  It should return 1 instead.
      84f2c1e3
  4. 11 4月, 2016 2 次提交
    • K
      9a144323
    • K
      Support the aggregation transition datatype to be "internal" (#588) · d9496670
      Kuien Liu 提交于
      * Support the aggregation transition datatype to be "internal"
      
      Backport below commits from upstream:
      
          commit 22d9ddbb
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Sat Aug 14 15:47:13 2010 +0000
      
              Fix planner to make a reasonable assumption about the amount of memory space
              used by array_agg(), string_agg(), and similar aggregate functions that use
              "internal" as their transition datatype.  The previous coding thought this
              took *no* extra space, since "internal" is pass-by-value; but actually these
              aggregates typically consume a great deal of space.  Per bug #5608 from
              Itagaki Takahiro, and fix suggestion from Hitoshi Harada.
      
              Back-patch to 8.4, where array_agg was introduced.
      
          commit 9e0247ab
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Fri Nov 14 19:47:50 2008 +0000
      
              In CREATE AGGREGATE, allow the transition datatype to be "internal", but only
              if the user is superuser.  This makes available to extension modules the same
              sort of trick being practiced by array_agg().  The reason for the superuser
              restriction is that you could crash the system by connecting up an
              incompatible pair of internal-using functions as an aggregate.  It shouldn't
              interfere with any legitimate use, since you'd have to be superuser to create
              the internal-using transition and final functions anyway.
      
      Besides, we cannot find regression tests in above commits, so we
      add a set of tests for this feature, a part of them come from
      legacy extension "intagg" regression tests.
      
      Conflicts:
      	src/test/regress/expected/arrays.out
      	src/test/regress/sql/arrays.sql
      
      * add tests to #588: run with role of (non-)superuser
      
          #588: Support the aggregate's transype to be "internal"
      
      Normally, the aggregate's transtype can't be a pseudo-type.
      However, we can allow "internal" for functions that want to
      pass pointers to private data structures; but allow that only
      to superusers. Here we add tests to verify this constraint.
      d9496670
  5. 10 4月, 2016 1 次提交
    • D
      Remove dead code · 700b86d9
      Daniel Gustafsson 提交于
      This code was commented out without providing any useful information
      so remove to reduce clutter.
      700b86d9
  6. 09 4月, 2016 3 次提交
  7. 08 4月, 2016 7 次提交
    • A
      e2768671
    • D
      Add qp_query_execution testsuite to greenplum_schedule · 3b5a2dc8
      Daniel Gustafsson 提交于
      The qp_query_execution test was added to the tree in commit 9d19664c
      and then further updated in 29a0fec8 but it's not present in any test
      schedule. Add to the greenplum_schedule to include it when running
      installcheck-good.
      3b5a2dc8
    • K
      Backport AggCheckCallContext() (#607) · 0d748d9b
      Kuien Liu 提交于
      Backport below commit from upstream:
      
          commit d5768dce
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Mon Feb 8 20:39:52 2010 +0000
      
              Create an official API function for C functions to use to check if they are
              being called as aggregates, and to get the aggregate transition state memory
              context if needed.  Use it instead of poking directly into AggState and
              WindowAggState in places that shouldn't know so much.
      
              We should have done this in 8.4, probably, but better late than never.
      
              Revised version of a patch by Hitoshi Harada.
      
      modified:   src/backend/executor/nodeAgg.c
      modified:   src/include/fmgr.h
      0d748d9b
    • H
      Remove unused file 'fil' · f513543d
      Haisheng Yuan 提交于
      f513543d
    • S
      gpcheckcat refactoring and nomenclature changes · b57da2ea
      Stephen Wu 提交于
      - use consistent spacing
      - use spaces instead of tabs
      - update nomenclature in gpcheckcat - rename 'test' to 'check'
        This is is to be more consistent and to avoid confusion with unit/integration
        tests in the future.  We purposely did not change 'test' in stdout and logs
        because integration tests for other parts of the system that call
        gpcheckcat currently fail if our output changes.  A future commit may
        change 'test' to 'check' in stdout in addition to fixing the aforementioned
        integration tests.
      
      Authors: Chumki Roy and Stephen Wu
      b57da2ea
    • K
      drop leaked/orphan schemas before running gpcheckcat catalog checks (#595) · 41dfd82b
      kaknikhil 提交于
      * drop leaked schemas before running gpcheckcat tests
      
        1. drop any leaked/orphaned schemas before running any of the gpcheckcat tests
        2. add unit and behave tests
        3. move gpcheckcat from gpMgmt/bin/lib to gpMgmt/bin
        4. misc refactoring
      
      orphan/leaked schemas are temp schemas that are not associated with any session id.
      There used to be a check for leaked temp schemas in gpcheckcat
      which ended up creating a repair script.
      
      * drop the database at the end of the behave test
      
      * move the gpcheckcat bin to lib symlink before the copy to /Users/nikhilkak/git/gpdb/gpAux/greenplum-db-devel
      
      * fix the if check before symlinking  gpcheckcat from bin to lib
      
      closes #595  
      41dfd82b
    • H
      Bump up GPORCA version number · 6e868c20
      Haisheng Yuan 提交于
      6e868c20