1. 25 1月, 2016 3 次提交
  2. 24 1月, 2016 1 次提交
    • D
      Merge upto 'ee57938c' from PostgreSQL 8.3 · 3863e617
      Daniel Gustafsson 提交于
      This set of patches were all already cherry-picked into PGDB or was rejected
      due to being Doc patches.
      
       Conflicts:
      	contrib/intarray/_int.h
      	doc/TODO
      	doc/src/FAQ/TODO.html
      	doc/src/sgml/Makefile
      	doc/src/sgml/docguide.sgml
      	doc/src/sgml/installation.sgml
      	src/backend/libpq/be-secure.c
      	src/backend/port/win32/socket.c
      	src/backend/postmaster/pgstat.c
      	src/backend/utils/adt/xml.c
      	src/include/port/win32.h
      	src/interfaces/ecpg/ChangeLog
      	src/interfaces/ecpg/ecpglib/extern.h
      	src/interfaces/ecpg/ecpglib/typename.c
      	src/interfaces/libpq/fe-secure.c
      	src/interfaces/libpq/libpq-int.h
      	src/pl/plperl/expected/plperl.out
      	src/pl/plperl/plperl.c
      	src/pl/plperl/sql/plperl.sql
      	src/timezone/ialloc.c
      	src/timezone/zic.c
      	src/tools/msvc/Project.pm
      	src/tools/msvc/build.bat
      	src/tools/msvc/mkvcbuild.pl
      3863e617
  3. 22 1月, 2016 6 次提交
    • D
      Merge upto '167fa70a' from PostgreSQL · 8e7886dd
      Daniel Gustafsson 提交于
      This merge only brings a small doc update and a bugfix in detaosting
      access to bytea field in pg_trigger.tgargs. The main changes in this
      set of patches were XML related which we already have (from 9.1) and
      the introduction of tablespaces for temporary objects which GPDB
      already have with filespaces for temporary objects.
      
       Conflicts:
      	doc/TODO
      	doc/src/FAQ/TODO.html
      	doc/src/sgml/config.sgml
      	doc/src/sgml/datatype.sgml
      	src/backend/commands/indexcmds.c
      	src/backend/commands/tablecmds.c
      	src/backend/commands/tablespace.c
      	src/backend/commands/trigger.c
      	src/backend/executor/execMain.c
      	src/backend/executor/execQual.c
      	src/backend/parser/gram.y
      	src/backend/parser/keywords.c
      	src/backend/parser/parse_expr.c
      	src/backend/storage/file/fd.c
      	src/backend/utils/adt/xml.c
      	src/backend/utils/misc/postgresql.conf.sample
      	src/include/utils/guc.h
      	src/include/utils/xml.h
      	src/pl/plpython/plpython.c
      	src/test/regress/expected/xml.out
      	src/test/regress/expected/xml_1.out
      	src/test/regress/sql/xml.sql
      8e7886dd
    • H
      Fix confusion over opfamily used for a join clause in a window agg. · 5f519a89
      Heikki Linnakangas 提交于
      I'm not 100% the code is doing the right thing even with this: If the
      pathkey's operator family doesn't match the join clause's operator family,
      the output isn't truly ordered the same way. This is not an issue for the
      case that I included in the regression test, where the join happens on a
      constant, but I can't figure out whether this might be an issue with some
      other query.
      5f519a89
    • H
      Fix bug in checking whether a cached function is still valid. · 74a71329
      Heikki Linnakangas 提交于
      When the combocids patch was backported from PostgreSQL 8.3 (c3983003), the
      changes to change the cache key of compiled functions were left out for
      some reason. Those changes are necessary: calling HeapTupleHeaderGetCMin()
      on the pg_proc tuple will trip an assertion, if the tuple has been moved by
      VACUUM FULL, and therefore HEAP_MOVED flags on the tuple are set. To fix,
      backport the missing parts of the upstream combocid patch.
      74a71329
    • H
      Remove unused field. · a653bd6a
      Heikki Linnakangas 提交于
      a653bd6a
    • H
      Fix assertion failure if the producer of a share scan is in subplan. · 7d9ca5db
      Heikki Linnakangas 提交于
      The comment in apply_shareinput_xslice() said that we process top-plan
      first, to ensure that we find the producer of a shared scan before its
      consumers, when the top plan contains a producer for subplans. But the
      situation can just as well be the other way 'round.
      
      No new test case added, because running the existing with_clause test
      with gp_cte_sharing=on trips the assertion.
      
      Fixes github issue #287.
      7d9ca5db
    • N
      Handle unfinished sort due to QueryFinishPending · e6acd16b
      Nikos Armenatzoglou 提交于
      My previous commit (3d0a4806), which was solving the issue described in pull request #276, was braking some ICG tests in some operating systems and we reverted it. This is a complete fix for the same issue.
      e6acd16b
  4. 21 1月, 2016 6 次提交
    • S
      Update gpcheckcat summary report · 4339a3bc
      Stephen Carter 提交于
      Currently to check previous runtimes it takes multiple grep commands
      to summarize the log file. This change adds all the information to a
      single line making it far easier to check historical runtimes. The
      historical runtimes can be used to estimate the required maintenance
      window for future runs.
      4339a3bc
    • D
      Merge upto '6441288e' from PostgreSQL 8.3 · e779bf66
      Daniel Gustafsson 提交于
      This merge adds --tablespaces-only and --roles-only to pg_dumpall. Since
      both GPDB and upstream have used -r in pg_dumpall, this commits disables
      -r and instead issues an error to avoid confusion.
      
       Conflicts:
      	doc/TODO
      	doc/src/FAQ/TODO.html
      	doc/src/sgml/ref/pg_dumpall.sgml
      	src/bin/pg_dump/pg_backup_archiver.h
      	src/bin/pg_dump/pg_dumpall.c
      	src/include/c.h
      e779bf66
    • D
      Merge upto 'ef65f6f7' from PostgreSQL 8.3 · ca5e1901
      Daniel Gustafsson 提交于
      This patch prevents WAL logging when COPY is done in the same transaction
      that created it. fba8113c is also cherry
      picked into this merge since it has fixups to this patch as well as
      related WAL skipping changes to CLUSTER.
      
       Conflicts:
      	doc/src/sgml/perform.sgml
      	src/backend/access/heap/heapam.c
      	src/backend/access/heap/tuptoaster.c
      	src/backend/catalog/index.c
      	src/backend/commands/copy.c
      	src/backend/executor/execMain.c
      	src/backend/utils/cache/relcache.c
      	src/include/access/tuptoaster.h
      ca5e1901
    • X
      Merge partition_full_outer_join back to partition1. · 7f8d0c20
      Xin Zhang 提交于
      Closes 275
      7f8d0c20
    • J
      Modify segment dump to exclude certain metadata. · 421d8268
      Jimmy Yih 提交于
      The dump process was checking the segments for several kinds of
      metadata, such as indexes and triggers, even though they were not
      being included in the dump.  The statements that were performing
      these useless checks have been modified to only run on the master.
      
      Authors: James McAtamney and Jimmy Yih
      421d8268
    • X
      Revert "Handling unfinished sort due to QueryFinishPending" · 630bb7f4
      Xin Zhang 提交于
      This reverts commit 3d0a4806.
      
      Closes #288
      630bb7f4
  5. 20 1月, 2016 4 次提交
    • N
      Handling unfinished sort due to QueryFinishPending · 3d0a4806
      Nikos Armenatzoglou 提交于
      This fix prevents gpdb from a segmentation fault in case that: i) a SharedInputScan has a Sort child node, ii) sort spills, and iii) somebody requests to finish the execution during the last stage of the sort (i.e., QueryFinishPending = true). Currently, in the above scenario, SharedInputScan continues the execution and tries to access sort's result_tape, which is NULL, due to QueryFinishPending.
      
      This commit makes a sort node to pretend that there are no results when QueryFinishPending flag is set to true. The commit also  creates a new Fault injector type and includes an ICG test.
      3d0a4806
    • D
      Merge upto '693c85d9' from PostgreSQL 8.3 · 8357ed1d
      Daniel Gustafsson 提交于
      This adds the capability to dump operator families. XML and MSVC build
      fixes were already merged and kept at master.
      
       Conflicts:
      	doc/src/sgml/xindex.sgml
      	src/backend/executor/execScan.c
      	src/backend/utils/adt/xml.c
      	src/backend/utils/mb/wchar.c
      	src/bin/pg_dump/common.c
      	src/bin/pg_dump/pg_backup_archiver.c
      	src/bin/pg_dump/pg_dump.c
      	src/bin/pg_dump/pg_dump.h
      	src/include/port/win32.h
      	src/test/regress/expected/xml.out
      	src/tools/msvc/Project.pm
      	src/tools/msvc/Solution.pm
      	src/tools/msvc/mkvcbuild.pl
      8357ed1d
    • P
      Backup and restore to report errors found from segments' status file · ce4586a7
      Pengcheng Tang 提交于
      Gpcrondump and gpdbrestore redirect stderr into status file for segments,
      errors should be reflected into the master's report file.
      Warnings will be given if process completed but errors were generated in
      the report file.
      
      Also made some refactor of the code.
      
      This commit also reverts 08f4ada7.
      
      Authors: Pengcheng Tang, Nikhil Kak
      ce4586a7
    • S
      Merge pull request #268 from skahler-pivotal/cent7_gpadmin_systemaccount · 339ff865
      Scott Kahler 提交于
      systemd IPC cleanup takes effect if gpadmin is not system user
      339ff865
  6. 19 1月, 2016 9 次提交
    • H
      Forbid DISTRIBUTED BY on an int2vector or aclitem column. · 56e7c16b
      Heikki Linnakangas 提交于
      int2vector and aclitem don't have B-tree operators, making them not
      mergejoinable. In the merge of the equivalence classes patch, I made
      cdb_make_pathkeys_for_expr() more strict on that, and it now throws
      an error if it's passed a datatype that doesn't have a mergejoinable
      = operator. It used to return a path key with InvalidOid as the sort
      operator, but that seems like a recipe for bugs elsehere.
      
      To fix, mandate that all gpdb-hashable datatypes must be mergejoinable.
      int2vector and aclitem are not, so forbid using them in DISTRIBUTED BY.
      
      This is a backwards-incompatible change, but hopefully no-one is using
      int2vector or aclitem in user-tables, at least not as a distribution key.
      56e7c16b
    • H
      Money is 64-bits wide nowadays. Fix comment. · 677772ee
      Heikki Linnakangas 提交于
      677772ee
    • D
      Update comment to match reality · 190cdd14
      Daniel Gustafsson 提交于
      Ensure that the comment match what can happen, YAML files with .yml
      suffix can also be created from mapred.
      190cdd14
    • V
    • H
      Merge upto 'a33cf104' from PostgreSQL 8.3 · 25d68c7a
      Heikki Linnakangas 提交于
      This adds CREATE/ALTER/DROP OPERATOR FAMILY commands.
      
      Conflicts:
      	doc/src/sgml/ref/allfiles.sgml
      	doc/src/sgml/ref/comment.sgml
      	doc/src/sgml/ref/drop_opclass.sgml
      	doc/src/sgml/reference.sgml
      	src/backend/catalog/aclchk.c
      	src/backend/commands/opclasscmds.c
      	src/backend/parser/gram.y
      	src/backend/parser/keywords.c
      	src/backend/tcop/utility.c
      	src/include/nodes/parsenodes.h
      25d68c7a
    • H
      Merge upto '8502b685' from PostgreSQL 8.3 · 6cc2eec5
      Heikki Linnakangas 提交于
      Conflicts:
      	contrib/pgbench/pgbench.c
      	doc/FAQ_MINGW
      	doc/src/sgml/manage-ag.sgml
      	src/backend/optimizer/path/costsize.c
      	src/backend/postmaster/postmaster.c
      	src/include/port/win32.h
      	src/port/exec.c
      6cc2eec5
    • H
      Relax the gp_toolkit tests for relation sizes. · 0ba94507
      Heikki Linnakangas 提交于
      There were failures from these in the Pivotal buildfarm. Some tables were
      larger than expected. I'm not sure why - perhaps there was some concurrent
      activity that bloats append-only tables - but there have been no functional
      changes so these really should be passing.
      0ba94507
    • H
      Remove dead, broken code. · b4abe122
      Heikki Linnakangas 提交于
      This is dead, because SubPlan is an Expr node and therefore cannot appear
      in a Plan tree.
      
      This was broken, because the "subplan = (SubPlan *) subplan" cast didn't
      do anything, and subplan was potentially uninitialized. It meant to say
      "subplan = (SubPlan *) plan".
      
      Spotted by Daniel Gustafsson.
      b4abe122
    • H
      Merge upto '5a7471c3' from PostgreSQL 8.3 · 9b6bd793
      Heikki Linnakangas 提交于
      This merges the COST and ROWS options for functions.
      
      One GPDB-specific question was what the ROWS option means for GPDB
      table functions. I decided to keep the old estimation method, where the
      number of output rows for a table function is estimated to be the same
      as input rows, and ignore the ROWS option.
      
      Also regenerate 4.3.json file, which I forgot to do in the previous commit.
      
      Conflicts:
      	doc/src/sgml/catalogs.sgml
      	doc/src/sgml/ref/create_function.sgml
      	src/backend/bootstrap/bootstrap.c
      	src/backend/catalog/pg_aggregate.c
      	src/backend/catalog/pg_proc.c
      	src/backend/commands/functioncmds.c
      	src/backend/commands/proclang.c
      	src/backend/optimizer/path/costsize.c
      	src/backend/optimizer/plan/createplan.c
      	src/backend/optimizer/plan/setrefs.c
      	src/backend/parser/gram.y
      	src/backend/parser/keywords.c
      	src/backend/utils/Gen_fmgrtab.sh
      	src/backend/utils/cache/lsyscache.c
      	src/bin/pg_dump/pg_dump.c
      	src/include/catalog/catversion.h
      	src/include/catalog/pg_attribute.h
      	src/include/catalog/pg_class.h
      	src/include/catalog/pg_proc.h
      	src/include/optimizer/cost.h
      	src/include/utils/lsyscache.h
      9b6bd793
  7. 18 1月, 2016 9 次提交
    • H
      Merge upto 'a85e9c61' from PostgreSQL 8.3 · 27a72dc6
      Heikki Linnakangas 提交于
      Conflicts:
      	doc/TODO
      	doc/src/FAQ/TODO.html
      	src/interfaces/ecpg/test/Makefile
      	src/interfaces/ecpg/test/pg_regress.sh
      27a72dc6
    • H
      Improve the tests for gp_toolkit. · 0d2672a6
      Heikki Linnakangas 提交于
      This brings in test queries from the "jetpack" test case in cdbfast (a
      legacy Pivotal test suite that has not been open sourced yet), to cover
      the gp_toolkit functionality that was not already covered by the bugbuster
      tests. Move the test case from bugbuster into the main suite - this should
      not be considered optional or auxiliary anymore.
      0d2672a6
    • H
      Fix __gp_user_tables_readable to not error out on inaccessible schemas. · 4b8e880f
      Heikki Linnakangas 提交于
      If there is a schema in the database that the user does not have access to,
      doing "select * from gp_toolkit.__gp_user_tables_readable" throws a
      permission denied error on the schema. Use the relation-OID-variant of
      has_table_privilege() function, to work around that.
      4b8e880f
    • H
      Refactor btree_desc() code to match upstream more closely. · 5fc44b19
      Heikki Linnakangas 提交于
      This isn't otherwise better than the existing code, but this matches the
      upstream more closely, which will make merging slightly easier.
      5fc44b19
    • H
      Move functions related to parsing of PARTITION BY clause to separate file. · 14fc7182
      Heikki Linnakangas 提交于
      parser/analyze.c is bloated, moving larger chunks of GPDB-specific
      functionality like this elsewhere makes it more readable. Make diffing and
      merging of analyze.c with upstream easier, too.
      
      I also ran pgindent on parse_partition.c.
      14fc7182
    • H
      Move createRandomDistribution() function to a more appropriate place. · d7b41c05
      Heikki Linnakangas 提交于
      parser/analyze.c is overcrowded, and since it's an upstream file, extra
      code there can confuse merging (though completely new functions are less
      of a problem).
      d7b41c05
    • H
      Move auto-stats related functions to separate file. · 0f73e33d
      Heikki Linnakangas 提交于
      The GPDB-specific auto-stats system doesn't really have anything to do with
      autovacuum. It's not run by the autovacuum daemon, and there are no calls
      from the autovacuum code to autostats code.
      0f73e33d
    • H
      Merge upto 'fcf4b146' from PostgreSQL 8.3 · 01ce6924
      Heikki Linnakangas 提交于
      Conflicts:
      	doc/TODO
      	doc/src/FAQ/TODO.html
      	doc/src/sgml/catalogs.sgml
      	doc/src/sgml/func.sgml
      	doc/src/sgml/indexam.sgml
      	doc/src/sgml/xindex.sgml
      	src/include/catalog/catversion.h
      	src/include/catalog/pg_am.h
      01ce6924
    • H
      Merge commit 'ebef17c7' from PostgreSQL 8.3 · 087bf2e8
      Heikki Linnakangas 提交于
      The big change in this merge is the "equivalence classes" mechanism. That's
      not too exciting as a feature, but cleans up a lot of the planner stuff that
      tracks which expressions can be treated as equal, and used interchangeably.
      
      This required quite a lot of changes in the GPDB-specific code that tracks
      the distribution keys of tables and intermediate nodes in a plan.
      
      One notable refactoring, that didn't originate from the upstream, was the
      change to CdbPathLocus, to split the "pathkeys" field into two. That reduces
      the confusion on which kind of a List we're dealing with.
      
      This includes fixes from a couple of later upstream commits: 48d9d8e1 and
      11086f2f. Those were needed to fix regression failures in GPDB-added tests.
      
      Merge by Daniel Gustafsson and me.
      
      Conflicts:
      	doc/src/sgml/config.sgml
      	doc/src/sgml/installation.sgml
      	doc/src/sgml/xoper.sgml
      	src/backend/access/gist/gistget.c
      	src/backend/access/gist/gistscan.c
      	src/backend/nodes/copyfuncs.c
      	src/backend/nodes/outfuncs.c
      	src/backend/optimizer/README
      	src/backend/optimizer/path/Makefile
      	src/backend/optimizer/path/costsize.c
      	src/backend/optimizer/path/indxpath.c
      	src/backend/optimizer/path/joinpath.c
      	src/backend/optimizer/path/joinrels.c
      	src/backend/optimizer/path/pathkeys.c
      	src/backend/optimizer/plan/createplan.c
      	src/backend/optimizer/plan/initsplan.c
      	src/backend/optimizer/plan/planmain.c
      	src/backend/optimizer/plan/planner.c
      	src/backend/optimizer/prep/prepunion.c
      	src/backend/optimizer/util/joininfo.c
      	src/backend/optimizer/util/pathnode.c
      	src/backend/optimizer/util/relnode.c
      	src/backend/optimizer/util/restrictinfo.c
      	src/backend/utils/error/elog.c
      	src/backend/utils/misc/postgresql.conf.sample
      	src/bin/psql/describe.c
      	src/include/access/gist_private.h
      	src/include/access/hash.h
      	src/include/nodes/nodes.h
      	src/include/nodes/relation.h
      	src/include/optimizer/pathnode.h
      	src/include/optimizer/paths.h
      	src/include/optimizer/planmain.h
      	src/include/optimizer/restrictinfo.h
      087bf2e8
  8. 16 1月, 2016 2 次提交