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. 16 8月, 2018 1 次提交
  3. 24 1月, 2017 1 次提交
    • D
      [#134494357] Added ANYENUM, ANYNONARRAY · c3ad85eb
      Dhanashree Kashid 提交于
      After 8.3 merge, gpdb has new polymorphic types, ANYENUM and ANYNONARRAY.
      
      This fix adds support for ANYENUM and ANYNONARRAY in Translator.
      
      As per postgreSQL, when a function has polymorphic arguments and results;
      in the function call they must have the same actual type.
      For example, a function declared as `f(ANYARRAY) returns ANYENUM`
      will only accept arrays of enum types.
      
      We already have this resolution logic implemented in
      `resolve_polymorphic_argtypes()`.
      
      Refactor the code in `PdrgpmdidResolvePolymorphicTypes()` to use
      `resolve_polymorphic_argtypes()` to deduce the correct data type for
      function argument and return type, based on function call.
      Signed-off-by: NBhuvnesh Chaudhary <bchaudhary@pivotal.io>
      Signed-off-by: NOmer Arap <oarap@pivotal.io>
      c3ad85eb
  4. 08 11月, 2016 1 次提交
  5. 23 6月, 2016 1 次提交
  6. 30 12月, 2015 1 次提交
    • H
      Silence warnings about converting string constants to char * without cast. · 4607a4a3
      Heikki Linnakangas 提交于
      * Add 'const' to arguments of some functions. While we're at it, remove the
      duplicate extern declaration of FaultInjector_InjectFaultIfSet from
      gpdbdefs.h.
      
      * pstrdup() constants passed to makeString(). I think the lack of copy
      was harmless, but makeString() explicitly says that the caller should make
      a copy, and all other callers seem to obey that, so better safe than sorry.
      4607a4a3
  7. 17 12月, 2015 2 次提交
    • H
      Track changes to catalogs that contain data cached in the metadata cache. · 7167ac78
      Heikki Linnakangas 提交于
      ORCA uses its own metadata cache to store information about relations,
      operators etc. Currently, we always reset the cache when planning a query,
      unless the optimizer_release_mdcache GUC is turned off, which is slow.
      
      To make it safe to turn optimizer_release_mdcache off, use the catalog
      cache invalidation mechanism to still reset the cache when there are
      changes to the catalogs that affect the metadata cache.
      
      The ORCA-facing interface of this is the same as in the previous attempt:
      A function that returns true/false indicating whether there has been any
      catalog changes whatsoever since last call.
      7167ac78
    • H
      Revert "Metadata Versioning feature for the ORCA Query Optimizer." · 6453dac7
      Heikki Linnakangas 提交于
      This reverts commit 6c31a3b4. Per
      discussion, we will implement the same functionality in a simpler way.
      6453dac7
  8. 14 12月, 2015 1 次提交
    • G
      Metadata Versioning feature for the ORCA Query Optimizer. · 6c31a3b4
      George Caragea 提交于
      Added a generation-based Metadata Versioning mechanism
      which will be used by ORCA to cache and invalidate catalog
      data in its Metadata Cache.
      Versioning is disabled by default at this point, until the
      Metadata Cache eviction policy is completed.
      6c31a3b4
  9. 28 10月, 2015 1 次提交