1. 08 2月, 2019 8 次提交
  2. 07 2月, 2019 12 次提交
    • H
      Fix outer query's target list, when creating a synthetic subquery. · 2527110a
      Heikki Linnakangas 提交于
      When the planner creates a subquery as part of grouping planning, fix
      the target list of the outer query to correctly refer to the outputs of
      the subquery. Previously, the parse tree's target list was sometimes left
      unchanged, so that it still contained Vars referring to the original
      relations, which have been pushed down to the subquery. After adding
      the subquery, the outer query only contains a single RTE for the subquery.
      
      We usually got away with a bogus target list in the outer query, because
      we had already decided how to construct the plan, and usually didn't look
      at the original parse tree anymore. In some cases, though, when the caller
      asked for it by passing 'use_root=true', we were already doing the right
      thing, but otherwise we didn't bother. There's little downside to fixing
      the target list, though, so let's do it unconditionally.
      
      Fixes https://github.com/greenplum-db/gpdb/issues/6754Reviewed-by: NMelanie Plageman <mplageman@pivotal.io>
      2527110a
    • H
      Fix the math in AllocSizeIsValid. · db730a6f
      Heikki Linnakangas 提交于
      GPDB's AllocSizeIsValid() was off by one byte, compared to upstream's.
      If the argument was exactly MaxAllocSize, the GPDB version would return
      false, whereas upstream's would return true.
      
      We had compensated for this in enlargeStringInfo(). But it wasn't quite
      right: if the caller needed exactly MaxAllocSize bytes (including the null
      terminator), the code would truncate it down to MaxAllocSize - 1, and
      therefore allocate one byte too little. That's unlikely to cause any real
      trouble on production systems, because in practice malloc() will round up
      the allocation to some alignment boundary. But with assertions enabled, it
      is easy to demonstrate e.g. with this:
      
      postgres=# select repeat('x', 1073741816);
      WARNING:  detected write past chunk end in printtup 0x7f8eabfff040 (aset.c:1505)
      Reviewed-by: NGeorgios Kokolatos <gkokolatos@pivotal.io>
      Reviewed-by: NMelanie Plageman <mplageman@pivotal.io>
      db730a6f
    • L
      Add GNU Time to centos images (#6908) · f33be7e7
      Lav Jain 提交于
      f33be7e7
    • M
      docs - remove hashmethod from pg_database (#6914) · 4b498a71
      Mel Kiyama 提交于
      4b498a71
    • A
      Fix compile_gpdb_sles_11 fail due to apu-1-config · 433dd14e
      Amil Khanzada 提交于
      apu-1-config is still being pulled from Ivy for sles, so we need to keep
      the --with-apu-config flag for sles.
      Co-authored-by: NAmil Khanzada <akhanzada@pivotal.io>
      Co-authored-by: NSambitesh Dash <sdash@pivotal.io>
      433dd14e
    • L
      docs - update util ref pages for 9.0beta3 (#6903) · 9ad23a52
      Lisa Owen 提交于
      * docs - update util ref pages for 9.0beta3
      
      * edits requested by mel
      
      * address comments from chuck
      9ad23a52
    • C
      Docs/psql9.0 docs merge b (#6890) · 5d5dfbcb
      Chuck Litzell 提交于
      * ALTER DEFAULT PRIVILEGES. Add new command to sql ref
      
      * ALTER ROLE. Substantive changes are already in the dita.
      
      * ALTER TABLE. add [IF EXISTS], STATISTICS DISTINCT
      
      * CREATE CAST. Add elipses to argtype
      
      * CREATE DATABASE. Change dbowner to user_name
      
      * CREATE FUNCTION. Remove SETOF and LIKE from RETURNS clause, notes on argument names
      
      * CREATE ROLE. add USER, SYSID options
      
      * CREATE TABLE.  LIKE clause syntax reorg and behavior. CHECK clause.
      
      * psql. add \ddp and \drds meta commands
      
      * REVOKE. add optional GROUP keyword
      
      * SELECT. Many changes. Lock behavior changes. Compatibility notes.
      
      * VACUUM. new parenthesized form of command
      
      * psql. Add missing square bracket
      
      * ALTER ROLE. Edits only.
      
      * ALTER TABLE. Change STATISTICS DISTINCT to (attribute_option = n)
      
      * ALTER TABLESPACE. Add tablespace_parameter
      
      * ANALYZE. Change STATISTICS DISTNCT to SET (n_distinct = ...)
      
      * CHECKPOINT. forces a restartpoint if run during recovery.
      
      * CLUSTER. Mention FILLFACTOR and ALTER TABLE cluster options
      
      * CREATE DOMAIN. domain can become null in spite of NOT NULL
      
      * CREATE CONVERSION. Note command is similar to standard create translation.
      
      * CREATE INDEX. Index name is optional, GiST example, edits.
      
      * CREATE LANGUAGE. Add OR REPLACE clause, edits.
      
      * CREATE OPERATOR. Deprecate => operator, note about lexical precedence
      
      * REASSIGN OWNED. Add required privileges and other notes
      
      * REINDEX. Clarify which indexes are reindexed for each option
      
      * DROP CONVERSION. Note command is similar to standard DROP TRANSLATION
      
      * SELECT. RANGE/ROWS edits, mostly made in earlier commits.
      
      * SHOW. Add examples with output
      
      * VACUUM. VACUUM FULL caveats.
      
      * Formatting fixes
      
      * Updates from reviews
      5d5dfbcb
    • A
      aa2398bc
    • S
      Remove apr and apr-utils libs for centos{6,7} from ivy repository · 3248ab47
      Sambitesh Dash 提交于
      In gpAux/Makefile, stop passing --with-apr-config for centos{6,7}. It
      was pointing at the version of apr-1-config which was pulled down by ivy
      and not the one on the PATH (which holds the version of apr-1-config
      bundled with the OS distro).
      Co-authored-by: NSambitesh Dash <sdash@pivotal.io>
      Co-authored-by: NDavid Sharp <dsharp@pivotal.io>
      Co-authored-by: NAmil Khanzada <akhanzada@pivotal.io>
      3248ab47
    • D
      Docs - postgres 90 merge2 (#6916) · a7aeb740
      David Yozie 提交于
      * analyze - add paragraph about distinct values per column
      
      * copy - new options and syntax
      
      * COPY - add legacy syntax
      
      * COPY - changes from 9.0Beta3 merge
      
      * CREATE VIEW - add note about creating existing view
      
      * EXPLAIN - new options; examples not updated.
      
      * FETCH - small edits
      
      * GRANT - small consistency edits; syntax consistency for optional GROUP keyword
      
      * MOVE - optional FROM, IN keywords
      
      * MOVE - optional GROUP keyword, consistency edits
      
      * ROLLBACK TO SAVEPOINT - clarification/edits around cursor rollback
      
      * bump postgresql url reference to 9.4
      
      * bump postgresql url reference to 9.4
      
      * bump postgresql url reference to 9.4
      
      * delimiter -> delimiter_character
      
      * Add a few more words around defaults for omitted options
      
      * bump postgresql url reference to 9.4
      
      * bump postgresql url reference to 9.4
      
      * analyze - add paragraph about distinct values per column
      
      * copy - new options and syntax
      
      * COPY - add legacy syntax
      
      * COPY - changes from 9.0Beta3 merge
      
      * CREATE VIEW - add note about creating existing view
      
      * EXPLAIN - new options; examples not updated.
      
      * FETCH - small edits
      
      * GRANT - small consistency edits; syntax consistency for optional GROUP keyword
      
      * MOVE - optional FROM, IN keywords
      
      * MOVE - optional GROUP keyword, consistency edits
      
      * ROLLBACK TO SAVEPOINT - clarification/edits around cursor rollback
      
      * delimiter -> delimiter_character
      
      * Add a few more words around defaults for omitted options
      a7aeb740
    • A
      Update comment for postponing qual for SEMI JOIN · 042a2b4f
      Alexandra Wang 提交于
      We added to the FIXME comment a link to an outstanding discussion on
      gpdb-dev mailing list about whether or not it is correct for semi-join
      to have quals deferred like this. If it is not, then the code should be
      changed and the assert can go back to the same as upstream. If it is,
      then the assert is right.
      Co-authored-by: NMelanie Plageman <melanieplageman@gmail.com>
      042a2b4f
    • C
      Docs/psql9.0 docs merge a (#6856) · a01fece4
      Chuck Litzell 提交于
      * ALTER DEFAULT PRIVILEGES. Add new command to sql ref
      
      * ALTER ROLE. Substantive changes are already in the dita.
      
      * ALTER TABLE. add [IF EXISTS], STATISTICS DISTINCT
      
      * CREATE CAST. Add elipses to argtype
      
      * CREATE DATABASE. Change dbowner to user_name
      
      * CREATE FUNCTION. Remove SETOF and LIKE from RETURNS clause, notes on argument names
      
      * CREATE ROLE. add USER, SYSID options
      
      * CREATE TABLE.  LIKE clause syntax reorg and behavior. CHECK clause.
      
      * psql. add \ddp and \drds meta commands
      
      * REVOKE. add optional GROUP keyword
      
      * SELECT. Many changes. Lock behavior changes. Compatibility notes.
      
      * VACUUM. new parenthesized form of command
      
      * psql. Add missing square bracket
      
      * Review comments
      a01fece4
  3. 06 2月, 2019 18 次提交
  4. 05 2月, 2019 2 次提交