1. 20 11月, 2015 1 次提交
  2. 19 11月, 2015 2 次提交
    • H
      Fix the order of xmlagg test queries. · 135f9f2a
      Heikki Linnakangas 提交于
      The order the rows were being aggregated was not well-defined, even though
      I tried to add ORDER BYs to the queries. Putting the ORDER BY inside the
      aggregate does the trick.
      135f9f2a
    • H
      Remove gp_upgrade_mode and related machinery. · d9b60cd2
      Heikki Linnakangas 提交于
      The current plan is to use something like pg_upgrade for future in-place
      upgrades. The gpupgrade mechanism will not scale to the kind of drastic
      catalog and other data directory layout changes that are coming as we
      merge with later PostgreSQL releases.
      
      Kept gpupgrademirror for now. Need to check if there's some logic that's
      worth saving, for a possible pg_upgrade based solution later.
      d9b60cd2
  3. 18 11月, 2015 1 次提交
    • H
      Remove back-ported partial FDW support. · 601c58c3
      Heikki Linnakangas 提交于
      It was just syntax and catalogs, you couldn't actually do anything useful
      with it. Remove it, so that we have less code to maintain, until it's time
      to merge this stuff from upstream again when we merge with PostgreSQL 8.4.
      It's probably easier to merge this back at that point than maintain this
      backported version in the meanwhile. Less effort now, until we reach that
      point, and once we get to the point in 8.4 that we merge this in, we'll
      have all the preceding patches applied already, so it should merge quite
      smoothly.
      601c58c3
  4. 16 11月, 2015 3 次提交
  5. 12 11月, 2015 1 次提交
    • H
      Move all function auto-generated lines from pg_proc.h to pg_proc_gp.h · 7774f0e7
      Heikki Linnakangas 提交于
      This splits pg_proc.h into two parts: pg_proc.h and pg_proc_gp.h. After the
      split, pg_proc.h contains functions we've inherited from upstream, and is
      mostly identical to the upstream version. This makes diffing and merging
      with upstream easier. All the upstream functions have been removed from
      pg_proc.sql, as they are no longer auto-generated. Instead of modifying
      pg_proc.h, catullus.pl is now used to create pg_proc_gp.h, which contains
      all the auto-generated DATA entries for the functions in pg_proc.sql.
      
      For the upstream-inherited DATA entries in pg_proc.h, remove the columns
      that are not present in upstream. This was needed again to make pg_proc.h
      closer to the upstream version. Also, remove auto-generated comments and
      revert whitespace changes compared to upstream.
      
      To compensate for the missing columns, introduce a new perl script,
      processs_col_defaults.pl that is run at build time, which adds the missing
      columns back to any DATA rows that miss them, before they are fed to
      genbki.sh. All the GPDB-added columns are annotated with a magic
      GPDB_COLUMN_DEFAULT() macro, similar to the CATALOG() and DATA() macros
      which tells process_col_defaults.pl what values to insert into the missing
      columns.
      
      Remove tidycat2 regression test. It tested that all the functions in
      pg_catalog came from pg_proc.sql, but that is no longer true. Only the
      GPDB-added ones are now in pg_proc.sql.
      7774f0e7
  6. 07 11月, 2015 1 次提交
  7. 06 11月, 2015 11 次提交
  8. 05 11月, 2015 2 次提交
  9. 03 11月, 2015 6 次提交
    • H
      Disable last remnants of the ancient V0-style C function support. · 2c1b3761
      Heikki Linnakangas 提交于
      It was not working correctly anyway on 32-bit x86 systems, where
      sizeof(int) < sizeof(Datum), because in Greenplum sizeof(Datum) == 8
      even on 32-bit platforms. This was revealed by failures on the 'misc'
      regression test, which tested this the V0 support.
      2c1b3761
    • H
      Avoid clashing with another test that creates table 'sales' · 4c098b92
      Heikki Linnakangas 提交于
      The 'gp_optimizer' test also creates a table called 'sales', which started
      to clash with the 'sales' table created by the new 'decode_expr' test.
      Rename the test table used in decode_expr, and also drop it at the end of
      the test.
      4c098b92
    • H
      Silence failure in 'misc' test case when ORCA is enabled. · 2a8e85a0
      Heikki Linnakangas 提交于
      Not sure why ORCA causes the error, but it seems to be intended behaviour,
      so I'm not going to try fixing that right now.
      2a8e85a0
    • H
      Move gphdfs regression test from server's test suite to gphdfs. · ceb25d9f
      Heikki Linnakangas 提交于
      The gphdfs test was concerned with testing gphdfs. It's useless without
      gphdfs itself, and was causing the main regression suite to fail, if gphdfs
      was not installed. Likewise, move the gphdfs-related parts of exttab1 test.
      ceb25d9f
    • H
      Move tests for DECODE() from bugbuster to main test suite. · fa2cb8cf
      Heikki Linnakangas 提交于
      Looks like all the 'functional' test was testing was DECODE() expressions,
      so rename the test, and move it to the main test suite. While we're at it,
      clean up the test case to some extent. Fix the missing semicolons from some
      queries, which caused the subsequent DROP to fail. Remove unused functions
      and emp and dept tables. Add some comments explaining what each test does.
      Remove use of multi-byte characters from test case, so that it works
      regardless of encoding.
      fa2cb8cf
    • H
      Fix and re-enable 'misc' regression test. · 5b3b528c
      Heikki Linnakangas 提交于
      Remove unnecessary ORDER BY clauses that are not present in the upstream
      version. Disable COPY BINARY test, as GPDB doesn't support BINARY copy.
      Finally, adjust the error messages in the expected output to match what
      you get nowadays.
      
      DROP TABLE cleanup commands have been added to some other tests, so that
      the extra user tables don't appear in the output of the 'misc' test. It's
      not very nice of the 'misc' test to list all user tables, but this
      nevertheless seems less likely to cause merge conflicts than ripping out
      that part of the test altogether. There are still differences in the list
      of user tables though.
      5b3b528c
  10. 02 11月, 2015 5 次提交
    • H
      Fix and re-enable 'copy2' regression test. · 91d772b8
      Heikki Linnakangas 提交于
      Revert some unnecessary changes compared to upstream: there's no need for
      ORDER BYs in queries, gpdiff.pl will mask out row order differences. That
      needed some fixes to atmsort.pl though, to make it smarter about reordering
      COPY TO STDOUT results. It used to only deal with the COPY (SELECT ...) TO
      STDOUT variant, and particularly named tables (COPY .*test1 TO STDOUT). Make
      it handle all COPY TO STDOUT commands. Also make it smarter about detecting
      the end of COPY TO STDOUT output. In addition to -- or ERROR, also treat any
      SELECT, UPDATE, CREATE etc. command as the end of result. In the passing,
      remove the "-- copy_stdout" command from atmsort.pl, as it was unused.
      
      No need to label the functions as immutable or with NO SQL or MODIFIES SQL
      DATA, and update the error message in the expected output about
      cross-segment access within functions.
      
      One of the tests gives a different error than on upstream: an empty line
      gives "invalid integer" error in upstream, but "missing data" on GPDB. I'm
      not quite sure what's causing that, but both errors seem reasonable for that
      case (the "missing data" is perhaps even better), so let's just memorize
      that difference.
      91d772b8
    • H
      Honor FORCE QUOTE in dispatched copy mode. · 7fe3a25e
      Heikki Linnakangas 提交于
      The upstream 'copy2' regression test exercised this, but we haven't noticed
      because we've disabled that test. I spotted this while trying to re-enable
      it. Nevertheless, let's add an explicit test for this.
      7fe3a25e
    • H
      Fix FORCE QUOTE for integers and numerics. · e8ad74ea
      Heikki Linnakangas 提交于
      Integers and numerics don't need quoting in CSV-format COPY, but they should
      still be quoted if the FORCE QUOTE option is used.
      
      We had memorized the incorrect output as expected output of the GPDB-added
      parts at the end of the 'copy' regression test. Fix that, but also add
      an explicit test case for this.
      e8ad74ea
    • H
      Mask out difference in exttab1 test output. · f9024427
      Heikki Linnakangas 提交于
      The shell on my laptop produces an error like:
      
      ERROR:  external table ext_stderr1 command ended with error. sh: 1: ...
      
      while the expected output is:
      
      ERROR:  external table ext_stderr1 command ended with error. sh: ...
      
      (Note the missing line number, "1: ").
      
      Add a substitution pattern to the test case to mask that out. There was
      already a similar pattern for shells that print "line 1:".
      f9024427
    • H
      Move bitmapscan bugbuster test to main suite, and clean it up. · 7d1e90d2
      Heikki Linnakangas 提交于
      Many of the test queries were doubled: run first within an ignore-block,
      and then for real. That seems pointless, so remove the duplicates. Also,
      fix typos in comments.
      
      This hopefully fixes test failures that we've occasionally seen in the
      buildfarm, where the mechanism in gpdiff.pl that masks out result set
      ordering differences gets confused by the duplicated queries in the
      ignore-blocks.
      7d1e90d2
  11. 30 10月, 2015 1 次提交
  12. 28 10月, 2015 1 次提交
  13. 22 12月, 2006 2 次提交
  14. 19 12月, 2006 1 次提交
  15. 07 12月, 2006 1 次提交
  16. 25 11月, 2006 1 次提交
    • T
      Change pg_stat_all_tables and sister views to put the recently-added · 988a87a0
      Tom Lane 提交于
      vacuum/analyze timestamp columns at the end, rather than at a random
      spot in the middle as in the original patch.  This was deemed more usable
      as well as less likely to break existing application code.  initdb forced
      accordingly.  In passing, remove former kluge for initializing
      pg_stat_file()'s pg_proc entry --- bootstrap mode was fixed recently
      so that this can be done without any hacks, but I overlooked this usage.
      988a87a0