1. 14 11月, 2016 2 次提交
  2. 12 11月, 2016 7 次提交
  3. 11 11月, 2016 10 次提交
  4. 10 11月, 2016 10 次提交
    • H
      Rely on the new OID mechanism also for pg_enum and pg_attrdef entries. · 5cdad61e
      Heikki Linnakangas 提交于
      EnumRelationId was incorrectly in the "These tables don't need to have
      their OIDs synchronized" category. In fact, there was bespoken code to
      synchronize them. But it's easy enough to rely on the generic mechanism,
      so do so, and reduce our diff vs. upstream a little bit.
      5cdad61e
    • H
      Add another generic OID field to OIdAssignment. · 30fa4cd0
      Heikki Linnakangas 提交于
      To stop the wide-spread abuse of namespaceOid for other things.
      30fa4cd0
    • H
      Use proper error code for NULL constraint violations in ORCA. · 61972775
      Heikki Linnakangas 提交于
      When a "null value in column <col> violates not-null constraint" error was
      thrown from the ORCA translator code, it was propagated to the rest of the
      system with ERRCODE_INTERNAL_ERROR. That's not nice, if an application
      wants to e.g. catch errors based on the error code.
      
      The reason to do this right now was that my previous commit that moved
      some ORCA translator code in the source files made the regression tests
      to fail. That's because an error handling code adds the source file name
      and line number to the error message, like (CTranslatorUtils.cpp:2627),
      and we had some such line numbers memorized in the regression tests.
      When the code moved, the tests broke. That's obviously too fragile, and
      using a proper error code fixes that by preventing the line number from
      being printed. That also removed the last difference between the ORCA
      and non-ORCA output from the 'insert' regression test.
      
      We could probably do the same for other errors thrown from ORCA, but I'll
      leave that for another day.
      61972775
    • H
      Update comment. · 98e80c4c
      Heikki Linnakangas 提交于
      Commit 38686122 changed the function to not give a WARNING, but neglected
      the comment that says it does.
      98e80c4c
    • P
      add compile_gpdb_centos7 job for gpdb5 pipeline · dfd54105
      Pengzhou Tang 提交于
      dfd54105
    • P
      Fix codegen unittest link problem · b5373a1e
      Pengzhou Tang 提交于
      Libraries like libssl libkrb5 are not included in the compile flags, so add those
      missing libraries to make codegen unittest pass.
      b5373a1e
    • P
      9c3b2286
    • P
      Clean up some cases from bugbuster · 969d8292
      Pengzhou Tang 提交于
      1. Remove TestPSQL from bugbuster
      The whole test is completely enclosed in a start/end_ignore block, we can not
      verify the correctness except it crash the whole service. Moreover,
      allow_system_table_mods has been tested by other cases in ICG, so this test case
      is useless for now.
      
      2. Remove useless codecoverage case from bugbuster
      
      3. Remove gp_persistent_table from bugbuster
      gp_enable_inheritance is not invalid under current code base, so Remove this
      case
      
      4. merge DMLstmnt from bugbuster to icg
      969d8292
    • H
      Remove unused ORCA translator code. · 413cb592
      Heikki Linnakangas 提交于
      A bunch of functions and classes that are not used anywhere.
      413cb592
    • Y
      Ignore AccessMethodProcedureRelationId · 4313dab9
      Yandong Yao 提交于
      Ignore AccessMethodProcedureRelationId as pg_amproc do not need
      OID synchronized between master and segments.
      4313dab9
  5. 09 11月, 2016 7 次提交
    • D
      Remove unused macro NUM_EXTRA_OIDS_FOR_BITMAP · c38c4ae6
      Daniel Gustafsson 提交于
      The NUM_EXTRA_OIDS_FOR_BITMAP macro was only used for generating a
      set of extra relfilenodes for when running vacuuming a bitmap index.
      With the new relfilenode handling in 88f0623e it's no loger required.
      c38c4ae6
    • H
      Remove ORCA-specific expected output. · 844180a0
      Heikki Linnakangas 提交于
      The test is failing with ORCA, because the expected output file hasn't been
      updated for the spelling of "at OPEN". The regular expected output file was
      updated in commit 05590cbf, but the ORCA-specific one was not.
      
      There is no meaningful difference between the ORCA and non-ORCA outputs,
      so just remove the alternative output file.
      844180a0
    • H
      Fix OID dispatching for casts. · 22541f04
      Heikki Linnakangas 提交于
      To test, backport test case for CREATE CAST from PostgreSQL 8.4. We don't
      apparently have any coverage for it previously. The upstream commit for the
      test case was:
      
      commit a1d2e165
      Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
      Date:   Fri Oct 31 09:17:17 2008 +0000
      
          Add test case for CREATE CAST.
      
      Reported by Yandong Yao
      22541f04
    • H
      Fix relfilenode conflicts. · 88f0623e
      Heikki Linnakangas 提交于
      There was a race condition in the way relfilenodes were chosen, because
      QE nodes chose relfilenodes for existing relations, e.g. at REINDEX or
      TRUNCATE, independently of the master, while for newly created tables,
      the relfilenode was chosen by the master. To fix:
      
      1. If the OID of a newly-created table is already in use as relfilenode
         of a different table in a QE segment, use a different relfilenode.
         (This shouldn't happen in the dispatcher, for the same reasons it
         cannot happen in a single-server PostgreSQL instance)
      
      2. Use a small cache of values recently used for a relfilenode, to close
         a race condition between checking if a relfilenode is in use, and
         actually creating the file
      88f0623e
    • K
    • K
      Adding explicit casting for concatenation operator with integer operands (#1274) · 6e8a1672
      Karen Huddleston 提交于
      * Adding explicit casting for concatenation operator with integer
      operands.
      Signed-off-by: NFoyzur Rahman <foyzur@gmail.com>
      
      * Explicit casting to convert integer to string to make opperf green.
      Signed-off-by: NFoyzur Rahman <foyzur@gmail.com>
      6e8a1672
    • K
      Making expression tree mutation unconditional (#1273) · 0d6fd9d5
      Karen Huddleston 提交于
      * Making expression tree mutation unconditional
      
      We previously did not consider that we need to mutate an expression tree
      only if there is a pseudo column. This introduces an executor crash in
      non-assert build as executor does not know how to interpret a pseudo
      column. Moreover, in assert build we fail an assert.
      
      The conditional we are removing  was introduced to optimize performance
      by commit a36436ea, but a quick performance
      run shows that performance is not noticeably affected by removing the
      optimization. [#131785597]
      Signed-off-by: NFoyzur Rahman <foyzur@gmail.com>
      
      * Adding PR comments.
      0d6fd9d5
  6. 08 11月, 2016 4 次提交