1. 02 11月, 2016 7 次提交
  2. 01 11月, 2016 8 次提交
    • B
      Disable .psqlrc · 9cd7c2ef
      brendanstephens 提交于
      .psqlrc can create unexpected output and changes in formatting that don't play nice with parse_oids().
      
      ```
      psql database --pset footer -Atq -h localhost -p 5432 -U gpadmin -f /tmp/20161012232709/toolkit.sql
      
      {"relids": "573615536", "funcids": ""}
      Time: 2.973 ms
      ```
      
      Generates an Exception:
      ```
      Traceback (most recent call last):
        File "/usr/local/greenplum-db/./bin/minirepro", line 386, in <module>
          main()
        File "/usr/local/greenplum-db/./bin/minirepro", line 320, in main
          mr_query = parse_oids(cursor, json_str)
        File "/usr/local/greenplum-db/./bin/minirepro", line 151, in parse_oids
          result.relids = json.loads(json_oids)['relids']
        File "/usr/local/greenplum-db/ext/python/lib/python2.6/json/__init__.py", line 307, in loads
          return _default_decoder.decode(s)
        File "/usr/local/greenplum-db/ext/python/lib/python2.6/json/decoder.py", line 322, in decode
          raise ValueError(errmsg("Extra data", s, end, len(s)))
      ValueError: Extra data: line 2 column 1 - line 3 column 1 (char 39 - 54)
      ```
      9cd7c2ef
    • H
      Fix gcc warnings on misleading indentation. · cdfe1917
      Heikki Linnakangas 提交于
      In many places where we had used a mixture of spaces and tabs for
      indentation, new versions of gcc complained about misleading indentation,
      because gcc doesn't know we're using tab width of 4. To fix, make the
      indentation consistent in all the places where gcc gave a warning. Would
      be nice to fix it all around, but that's a lot of work, so let's do it
      in a piecemeal fashion whenever we run into issues or need to modify a
      piece of code anyway.
      
      For some files, especially the GPDB-specific ones, I ran pgindent over
      the whole file. I used the pgindent from PostgreSQL master, which is
      slightly different from what was used back 8.3 days, but that's what I had
      easily available, and that's what we're heading to in the future anyway.
      In some cases, I didn't commit the pgindented result if there were
      funnily formatted code or comments that would need special treatment.
      
      For other places, I fixed the indentation locally, just enough to make the
      warnings go away.
      
      I also did a tiny bit of other trivial cleanup, that I happened to spot
      while working on this, although I tried to refrain from anything more
      extensive.
      cdfe1917
    • A
      Update bugbuster expected files · 1026863d
      Adam Lee 提交于
      Update storage types of cidr and inet in AOCO_Compression2,
      schema_topology and schema_topology_optimizer expected files.
      
      Related commit: 3e23b68dSigned-off-by: NPengzhou Tang <ptang@pivotal.io>
      1026863d
    • H
      Remove "-funroll-loops finline-limit=1800" from standard CFLAGS. · 19c96e6f
      Heikki Linnakangas 提交于
      Aggressive inlining can improve performance in hot spots, but when applied
      indiscriminately, it makes binaries larger for little gain. For lack of
      better evidence, let's trust the compiler defaults. This makes the build
      faster, and the binaries smaller. If we find out that these options are
      beneficial for some specific functions or source files, let's add them
      back to those special cases.
      
      In a quick test on my laptop, this makes the build about 2x faster, and
      shrinks the binaries from about 14MB to 9MB (after running "strip").
      19c96e6f
    • A
      0bd8678d
    • K
      Bump ORCA to 1.681. · 7c4d8f70
      Karthikeyan Jambu Rajaraman 提交于
      7c4d8f70
    • K
      Fix ICG failure · d41ebde1
      Karthikeyan Jambu Rajaraman 提交于
      d41ebde1
    • K
      Fix ORCA error message and make it same as with Planner.(Closes #1247) · 4eb5db7a
      Karthikeyan Jambu Rajaramn 提交于
      - In ORCA, due to the way exception handled previously we do warning first
      and then later print error referring that message. In this commit, we
      enhanced the exception handling so we just print a single error message.
      - Also, we removed 'PQO unable to generate a plan' or 'Aborting PQO plan
      generation' message and make the error message as close as the planner.
      - Updated error message with filename and line number from where the exception
      is raised.
      4eb5db7a
  3. 31 10月, 2016 3 次提交
  4. 30 10月, 2016 3 次提交
  5. 29 10月, 2016 3 次提交
    • F
      Fixing assertion failures in indexed based memory accounting (#1260) · e0374cab
      foyzur 提交于
      * Removing invalid assertion that checks to ensure we don't do further allocations under dead accounts. The whole idea of a index based accounting is to not care about dead accounts and transparently handle those via RolloverAccount without hitting a SEGV.
      
      * Including MEMORY_OWNER_TYPE_EXECUTOR_END as a valid owner type as this enum value overlaps with the last valid executor account type.
      e0374cab
    • A
      Set timezone to PST and updated .sql/.ans files · b8f73ef2
      Ashwin Agrawal and Amil Khanzada 提交于
      These .sql files assumed that the timezone for machines running the
      TINC tests would have the timezone as PST/PDT. This commit explicitly
      sets the timezone to PST in the .sql files and updates the .ans files
      to handle this new behavior.
      
      This was done so that the below TINC tests could run on Concourse
      containers which use UTC time zone:
      -cs-storage
      -cs-uao
      b8f73ef2
    • N
      Abort code generation of expression evaluation trees with unsupported ExprState types · e1fd6072
      Nikos Armenatzoglou 提交于
      Current codegen expression evaluation framework generates code based only on
      ExprState->Expr->type (e.g., T_Var), without checking the ExprState->type.
      In other words, it treats all nodes of the tree that have the same type
      (e.g., T_Var) in the same way (i.e., generates the same code).
      
      However, in GPDB the evaluation function (evalfunc) of a node depends
      on ExprState->Expr->type and ExprState->type. For example, if
      ExprState->Expr->type = T_Var and ExprState->type = T_ExprState, then
      the evalfunc  = ExecEvalScalarVar. On the other hand, if
      ExprState->Expr->type = T_Var and ExprState->type =
      T_WholeRowVarExprState, then evalfunc = ExecEvalWholeRowVar.
      
      We fix this issue by avoiding code generation for an expression tree
      that contains nodes of unsupported ExprState->type.
      Signed-off-by: NKaren Huddleston <khuddleston@pivotal.io>
      e1fd6072
  6. 28 10月, 2016 13 次提交
    • D
      Make status report feedback not depend on debug printing · b3ceb0a8
      Daniel Gustafsson 提交于
      The tracking of process startups was in a past commit encompassed
      within an if brace block seemingly by accident. This seems to have
      been copy-pasted with the result being that tracking processes was
      depending on the debug_print_server_processes GUC being set. This
      separates the tracking and the process checking and also removes
      a few checks that weren't necessary.
      b3ceb0a8
    • D
      Log with the appropriate level given the GUC setting · a084bb38
      Daniel Gustafsson 提交于
      When Debug_print_server_processes is set we must send to LOG rather
      than DEBUG2.
      a084bb38
    • D
      Always log in signal_child() when asked to · b7733209
      Daniel Gustafsson 提交于
      Log the sending of a signal regardless of if we know the name of the
      process or not in signal_child() when Debug_print_server_processes is
      set to on.
      b7733209
    • D
      Style, spelling and formatting cleanup of postmaster · 921368d7
      Daniel Gustafsson 提交于
      Wholesale cleanup of the postmaster.c file as it was worked on. Some
      of the fixups include: function return value declarations on their own
      line; breaking long lines; concatenating broken lines that collapsed
      are less than 79 chars; fixing spelling; moving MPP-XXX markers to end
      of the comments rather then prefixing the comment; ..and more.
      
      Since the file originates from upstream, opt for the postgres style
      when in conflict to keep the file consistent.
      921368d7
    • D
      Make return value of GetServerProcessTitle() const and fix style · 2f5bdebd
      Daniel Gustafsson 提交于
      The returned string is better declared as a const char pointer, update
      and fix the two call sites. Also add the walwriter process to the list
      and make the if/else chain consistent by just using if. Any if statement
      being true will leave the function anyways so might as well make it
      easier to read.
      2f5bdebd
    • D
      Use safe string operators for version string · 529c82d9
      Daniel Gustafsson 提交于
      When constructing the version string to report in the postmaster, use
      safe string operators strlcpy() and strlcat(). Even though the buffer
      is large enough to not be likely to overflow the mere chance is worth
      avoiding by all means.
      529c82d9
    • D
      Exit on unrecognized command line option · 034a6fcb
      Daniel Gustafsson 提交于
      In case an illegal option is passed, exit(1) rather than trying to
      keep going. Also add the default: case as well as suppress printing
      an error of our own since getopt() has already done so at this point.
      034a6fcb
    • D
      Use integer for getopt() returnvalue · b18dc34e
      Daniel Gustafsson 提交于
      getopt() return integer and subtle differences can exist between
      using an integer and a char. Reported by github user liruto.
      b18dc34e
    • D
      Guard against message truncation · 9e1de55a
      Daniel Gustafsson 提交于
      If the message is truncated in construction we need to treat it as
      a failed construction since we otherwise might leave out important
      parts.
      9e1de55a
    • N
      Support null attributes in codegen expression evaluation framework · 509460ee
      Nikos Armenatzoglou 提交于
      Enhancing PGFuncGeneratorInterface, PGIRBuilderFuncGenerator, and PGGenericFuncGenerator with
      attributes and checks that record and examine if a built-in function is strict or not and
      generate code accordingly.
      
      Authors: Nikos Armenatzoglou, Nikhil Kak, Jimmy Yih, and Karen Huddleston.
      509460ee
    • D
      Use format string in gettext macro invocation · fa337f1f
      Daniel Gustafsson 提交于
      Commit 96f22dac expanded the feature check to handle more than just ORCA
      but when moving to using passed in string variables for printing on/off
      it generates a clang compiler warning on -Wformat-security:
      
        warning: format string is not a string literal (potentially insecure)
      
      Move to using format strings rather than just passing the string variable
      to fix the warning and also avoid any theoretical issues with the passed
      string.
      fa337f1f
    • D
      Misc fixes to check_feature_status() to handle cleanup and truncation · 277d7bdb
      Daniel Gustafsson 提交于
      This is a collection of small fixes to check_feature_status() that
      fell out when fixing a compiler warning in the code. The fixes are
      (listed in no specific order):
      
        * Print tuples only in SHOW <feature>; command since we know there
          is little point in reading the header rows when we're just hunting
      	for the on/off
        * Move to const char arguments since this function has no business
          altering the input
        * Explicitly clean up temporary files from feature checking and
          remove them from .gitignore files to avoid littering the tree
        * Check for overflow in command generation since we are appending
          a string with a theoretical limit of MAXPGPATH onto a string
      	with MAXPGPATH size combined with additional content thus
      	risking a truncation. Also fix a minor related style issue to
      	match the rest of the file
      277d7bdb
    • A
      Allow user to set num segs, max connects in gpdemo · 91ca5914
      Ashwin Agrawal 提交于
      --$DEFAULT_QD_MAX_CONNECT---
      Can be set as an environment variable before calling make cluster.
      Defalt value is 25.
      
      ---$NUM_PRIMARY_MIRROR_PAIRS---
      Can be set as an environment variable before calling make cluster.
      
      gpdemo by default creates 3 primaries and 3 mirrors.  With this
      change, users can set the environment variable
      $NUM_PRIMARY_MIRROR_PAIRS to another value such as 2 to make gpdemo
      create 2 primaries and 2 mirrors instead.
      91ca5914
  7. 27 10月, 2016 3 次提交