1. 29 9月, 2020 1 次提交
    • J
      Format ORCA and GPOPT. · 219fe0c4
      Jesse Zhang 提交于
      The canonical config file is in src/backend/gpopt/.clang-format (instead
      of under the non-existent src/backend/gporca), I've created one (instead
      of two) symlink, for GPOPT headers. Care has been taken to repoint the
      symlink to the canonical config under gpopt, instead of gpopt as it is
      under HEAD.
      
      This is spiritually a cherry-pick of commit 2f7dd76c.
      (cherry picked from commit 2f7dd76c)
      219fe0c4
  2. 20 9月, 2019 1 次提交
    • S
      Fix miscellaneous warnings when building ORCA translator code · b69e0632
      Shreedhar Hardikar 提交于
      - Fix "missing prototype" warnings
      - Fix "generalized initializer lists are a C++ extension" warning
      
      funcs.cpp:43:1: warning: no previous prototype for function 'DisableXform' [-Wmissing-prototypes]
      DisableXform(PG_FUNCTION_ARGS)
      ^
      funcs.cpp:76:1: warning: no previous prototype for function 'EnableXform' [-Wmissing-prototypes]
      EnableXform(PG_FUNCTION_ARGS)
      ^
      funcs.cpp:109:1: warning: no previous prototype for function 'LibraryVersion' [-Wmissing-prototypes]
      LibraryVersion()
      ^
      funcs.cpp:123:1: warning: no previous prototype for function 'OptVersion' [-Wmissing-prototypes]
      OptVersion()
      ^
      4 warnings generated.
      
      CTranslatorDXLToScalar.cpp:730:9: warning: generalized initializer lists are a C++11 extension [-Wc++11-extensions]
              return { .oid_type = inner_type_oid, .type_modifier = type_modifier};
      b69e0632
  3. 16 8月, 2018 1 次提交
  4. 20 1月, 2017 1 次提交
    • H
      Clean up OptVersion(). · 3bbe7b7b
      Heikki Linnakangas 提交于
      Using a StringInfo just to copy a string is quite pointless. Simplify by
      changing OptVersion() to return a plain palloc'd string instead.
      
      This fixes a memory management bug too: OptVersion() is called like a
      normal Postgres C function, not as a subroutine of PplStmtOptimize. As a
      result, if OptVersion() throws a C++ exception, there is nothing to catch
      it, and it will cause the process to exit, bringing down the server.
      The gpdb::SiMakeStringInfo() wrapper, used in OptVersion(), would translate
      any ereport() (e.g. out-of-memory error) into a C++ error, but that's not
      what we want in this context. A plain makeStringInfo() would be correct
      here, and LibraryVersion() got that right, but for OptVersion it's simpler
      to just return a plain string anyway.
      3bbe7b7b
  5. 07 1月, 2017 1 次提交
  6. 18 11月, 2016 1 次提交
  7. 15 11月, 2016 1 次提交
    • H
      Move ORCA-debugging UDFs to a separate contrib module. · dfbbe82e
      Heikki Linnakangas 提交于
      Some of the functions in funcs.cpp were only used by debugging/testing
      code. They were included in the libgpoptudfs.so library, but it was built
      in a strange way, from gpAux/Makefile. Move it to a contrib module, along
      with the regression tests using it.
      
      This commit leaves only the functions actually used by backend code in
      funcs.cpp, and moves the debugging functions only used by the optional
      UDFs into the contrib module.
      
      NOTE: The regression tests don't actually work at the moment. But that's not
      new, they didn't work before either. I don't have the patience to start
      fixing them, so I'm just moving them to the new location in their current
      form.
      
      NOTE2: The new module is called orca_debug, but I think some test code
      in GPORCA repository expects to find this in libgoptudfs.so. Will need
      to fix the scripts there.
      dfbbe82e
  8. 10 11月, 2016 1 次提交
  9. 02 11月, 2016 1 次提交
  10. 01 11月, 2016 1 次提交
    • 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
  11. 20 10月, 2016 1 次提交
    • D
      Explicitly mark abort() as an allowed API call for gpopt · ab281fc5
      Daniel Gustafsson 提交于
      libgpos has a set of banned API calls which needs to be allowed with
      the ALLOW_xxx macro in order for gpopt to compile (and thus run).
      The changes to ereport() brought a need for allowing abort() since
      it now invokes abort when building with --enable-cassert.
      
      This is a temporary fix awaiting the removal of the banning of
      function calls entirely. Pushed even though the CI pipeline failed
      to provide a clean run (for seeminly unrelated reasons) due to the
      absence of this blocking other efforts.
      ab281fc5
  12. 19 8月, 2016 1 次提交
  13. 16 7月, 2016 1 次提交
  14. 18 5月, 2016 1 次提交
  15. 10 5月, 2016 1 次提交
  16. 11 2月, 2016 1 次提交
    • D
      Fix a set of compiler warnings in gpopt · 074446fc
      Daniel Gustafsson 提交于
      Without altering functionality, fix a set of compiler warnings in
      gpopt: Properly return in non-void function, remove non-function
      invocation of variable and use the right formatter for ULLONG when
      printing.
      074446fc
  17. 08 1月, 2016 1 次提交
  18. 28 10月, 2015 1 次提交