1. 01 11月, 2016 6 次提交
  2. 31 10月, 2016 3 次提交
  3. 30 10月, 2016 3 次提交
  4. 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
  5. 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
  6. 27 10月, 2016 8 次提交
  7. 25 10月, 2016 4 次提交