1. 27 4月, 2017 1 次提交
    • D
      Retire SAN failover strategy · a8f956c6
      Daniel Gustafsson 提交于
      The SAN FTS failover strategy is deprecated and no longer maintained,
      as it's no longer needed. Retire the dead code to clean up. Since we
      currently are in catalog freeze, the gp_san_configuration catalog is
      left in place but will be removed once we open up for the next major
      version cycle. Since the gp_san_config header file contains catalogs
      for general FTS fault strategies, rename the file for clarity.
      a8f956c6
  2. 30 3月, 2017 1 次提交
    • D
      Ensure version output regardless of code tree · 0de5fc63
      Daniel Gustafsson 提交于
      Rather than relying on always having a full cloned repository when
      building, add fallbacks which work for trees with constrained (such
      as shallow-cloned trees), or no, history. When the tagged commit is
      reachable, use git describe, else rely on the version string in
      configure since that's required to always be there regardless of
      distribution mode. If we have git tree then include the HEAD sha1
      as well.
      
      While there, clean up versioning to more clearly separate us from
      upstream.
      0de5fc63
  3. 21 2月, 2017 1 次提交
  4. 24 1月, 2017 1 次提交
    • C
      Update foreign key json file name to 5.0 (#1605) · ca66868e
      Chris Hajas 提交于
      * Update foreign key json file name to 5.0
      
      * This was breaking gpcheckcat which assumes the json file corresponds
      * to the current greenplum version.
      * Update docs for generating json file.
      
      Authors: Chris Hajas and Jamie McAtamney
      ca66868e
  5. 14 11月, 2016 2 次提交
    • Y
      Remaining part of extension framework · 758d72aa
      Yandong Yao 提交于
      - continue to merge the remaining part of extension framework,
      include alter extension, extension view, extension upgrade,
      psql support.
      - Make plpgsql available as an extension.
      - Support dump for extension.
      - Use new oid dispatch method to for extension oid
      
      commit d9572c4e
      Author: Tom Lane <tgl@sss.pgh.pa.us>
      Date:   Tue Feb 8 16:08:41 2011 -0500
      
          Core support for "extensions", which are packages of SQL objects.
      
          This patch adds the server infrastructure to support extensions.
          There is still one significant loose end, namely how to make it play nice
          with pg_upgrade, so I am not yet committing the changes that would make
          all the contrib modules depend on this feature.
      
          In passing, fix a disturbingly large amount of breakage in
          AlterObjectNamespace() and callers.
      
          Dimitri Fontaine, reviewed by Anssi Kääriäinen,
          Itagaki Takahiro, Tom Lane, and numerous others
      
      commit 5bc178b8
      Author: Tom Lane <tgl@sss.pgh.pa.us>
      Date:   Wed Feb 9 11:55:32 2011 -0500
      
          Implement "ALTER EXTENSION ADD object".
      
          This is an essential component of making the extension feature usable;
          first because it's needed in the process of converting an existing
          installation containing "loose" objects of an old contrib module into
          the extension-based world, and second because we'll have to use it
          in pg_dump --binary-upgrade, as per recent discussion.
      
          Loosely based on part of Dimitri Fontaine's ALTER EXTENSION UPGRADE
          patch.
      
      commit 01467d3e
      Author: Tom Lane <tgl@sss.pgh.pa.us>
      Date:   Thu Feb 10 17:36:44 2011 -0500
      
          Extend "ALTER EXTENSION ADD object" to permit "DROP object" as well.
      
          Per discussion, this is something we should have sooner rather than later,
          and it doesn't take much additional code to support it.
      
      commit 12147499
      Author: Tom Lane <tgl@sss.pgh.pa.us>
      Date:   Fri Feb 11 21:25:20 2011 -0500
      
          Add support for multiple versions of an extension and ALTER EXTENSION UPDATE.
      
          This follows recent discussions, so it's quite a bit different from
          Dimitri's original.  There will probably be more changes once we get a bit
          of experience with it, but let's get it in and start playing with it.
      
          This is still just core code.  I'll start converting contrib modules
          shortly.
      
          Dimitri Fontaine and Tom Lane
      758d72aa
    • F
      Backport 9.4 create/drop extension feature · ee8daacb
      funnyxj.fxj 提交于
      ee8daacb
  6. 07 11月, 2016 1 次提交
    • H
      Revamp the way OIDs are dispatched to segments on CREATE statements. · f9016da2
      Heikki Linnakangas 提交于
      Instead of carrying a "new OID" field in all the structs that represent
      CREATE statements, introduce a generic mechanism for capturing the OIDs
      of all created objects, dispatching them to the QEs, and using those same
      OIDs when the corresponding objects are created in the QEs. This allows
      removing a lot of scattered changes in DDL command handling, that was
      previously needed to ensure that objects are assigned the same OIDs in
      all the nodes.
      
      This also provides the groundwork for pg_upgrade to dictate the OIDs to use
      for upgraded objects. The upstream has mechanisms for pg_upgrade to dictate
      the OIDs for a few objects (relations and types, at least), but in GPDB,
      we need to preserve the OIDs of almost all object types.
      f9016da2
  7. 25 8月, 2016 2 次提交
  8. 05 8月, 2016 1 次提交
    • H
      Remove tidycat. · 860a36fb
      Heikki Linnakangas 提交于
      System catalogs are now defined like in the upstream, without any special
      tidycat headers.
      
      Note: This doesn't change the way pg_proc_gp.h is generated from
      pg_proc.sql, by catullus.pl.
      
      This comes with a replacement for generating 4.3.json:
      src/backend/catalog/process_foreign_keys.pl. The foreign keys were the
      only thing that the json file was used for. AFAIK gpcheckcat is the only
      tool that reads that file, and it only paid attention to the foreign key
      information.
      
      While working on this, I noticed that a few tables were missing foreign
      key declarations. I added FIXME comments on them. Also, a few tables used
      to have "vector" references, e.g. pg_index.indclass was an oidvector, where
      each element of the array points to pg_class.oid. AFAICS, those
      declarations were actually not used for anything. I left those in place as
      comments, in case we want to add support in gpcheckcat and the new
      process_foreign_keys.pl tool for them, but for now they're just
      documentation.
      
      This also removes pablopcatso.pl. It read the json file (Ok, so there was
      one more user besides gpcheckcat for it), which is now gone. We could
      create a tool that reads the same information straight from the header
      files, or from a live database, but it was just a developer aid, and I
      don't think anyone's used it for quite a while, so I don't think we need a
      replacement.
      860a36fb
  9. 14 1月, 2016 1 次提交
    • A
      Add gp_read_error_log and gp_truncate_error_log functions to the catalog. · 4a1ec1b2
      Abhijit Subramanya 提交于
      gp_read_error_log and gp_truncate_error_log were two functions which were added
      in 4.3.3.0 to support the new error logging functionality for external tables.
      They were added to a "hidden" catalog in order to prevent bumping up the
      catalog version in a minor version release. We need to add them to the true
      catalog in a major release.
      
      Also in the process remove hiddencat mechanism since apart from the above two
      functions no other functions use it.
      4a1ec1b2
  10. 08 1月, 2016 1 次提交
  11. 07 1月, 2016 1 次提交
    • A
      Remove gpverify code. · 8afc1dd1
      Ashwin Agrawal 提交于
      gpverify functionality was planned in past to deliver online
      verification of primary and mirror. It's completely dead code as never
      exposed this functionality and have no plans either. It eliminates
      creation of unused processes, extra directory, some shared memory and
      all.
      8afc1dd1
  12. 01 1月, 2016 1 次提交
  13. 31 12月, 2015 1 次提交
    • H
      Simplify the way gp_toolkit schema is installed · f8910c3c
      Heikki Linnakangas 提交于
      Use the standard initdb mechanism for it, instead of having bespoken code
      in gpinitsystem.
      
      Also remove the unnecessarily complicated logic to generate gp_toolkit.sql
      from gp_toolkit.sql.in. All the JETPACK_* variables were constants, and
      there is particular need in making the gp_toolkit functions relocatable to
      different schemas or prefixes, so just hardcode them and remove the sed
      magic.
      
      Rewrite the file header of gp_toolkit.sql. The legal blurp is not needed,
      make the header look more like that of information_schema.sql and
      system_views.sql.
      
      Remove compaction_info.sql. It was only needed for old in-place
      upgrade from 4.3.x to 4.3.4.2, which is not relevant for master branch.
      
      Fix the "jetpack" bugbuster regression test. It was originally written to
      test the gp_toolkit views, but gp_toolkit was in fact not installed in
      bugbuster, and the expected output just contained a bunch of "relation
      does not exist" errors. Now it actually tests gp_toolkit again. Some of
      the test queries didn't produce repeateable results, due to differing oids,
      differences in table sizes, and other tables created by previous tests, so
      fixed those too.
      
      This has a small user-visible difference: gp_toolkit schema is now also
      installed in template0. That caused the difference in the expected outputs:
      pg_regress creates the "regression" database using template0 as the
      template, so gp_toolkit used to not be installed in it, but it is now.
      f8910c3c
  14. 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
  15. 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
  16. 28 10月, 2015 1 次提交
  17. 21 8月, 2007 1 次提交
  18. 02 4月, 2007 1 次提交
  19. 09 2月, 2007 1 次提交
  20. 06 2月, 2007 1 次提交
  21. 23 12月, 2006 1 次提交
    • T
      Restructure operator classes to allow improved handling of cross-data-type · a78fcfb5
      Tom Lane 提交于
      cases.  Operator classes now exist within "operator families".  While most
      families are equivalent to a single class, related classes can be grouped
      into one family to represent the fact that they are semantically compatible.
      Cross-type operators are now naturally adjunct parts of a family, without
      having to wedge them into a particular opclass as we had done originally.
      
      This commit restructures the catalogs and cleans up enough of the fallout so
      that everything still works at least as well as before, but most of the work
      needed to actually improve the planner's behavior will come later.  Also,
      there are not yet CREATE/DROP/ALTER OPERATOR FAMILY commands; the only way
      to create a new family right now is to allow CREATE OPERATOR CLASS to make
      one by default.  I owe some more documentation work, too.  But that can all
      be done in smaller pieces once this infrastructure is in place.
      a78fcfb5
  22. 31 7月, 2006 1 次提交
    • T
      Change the bootstrap sequence so that toast tables for system catalogs are · 6e38e34d
      Tom Lane 提交于
      created in the bootstrap phase proper, rather than added after-the-fact
      by initdb.  This is cleaner than before because it allows us to retire the
      undocumented ALTER TABLE ... CREATE TOAST TABLE command, but the real reason
      I'm doing it is so that toast tables of shared catalogs will now have
      predetermined OIDs.  This will allow a reasonably clean solution to the
      problem of locking tables before we load their relcache entries, to appear
      in a forthcoming patch.
      6e38e34d
  23. 12 2月, 2006 1 次提交
    • B
      I've created a new shared catalog table pg_shdescription to store · f9a726aa
      Bruce Momjian 提交于
      comments on cluster global objects like databases, tablespaces, and
      roles.
      
      It touches a lot of places, but not much in the way of big changes.  The
      only design decision I made was to duplicate the query and manipulation
      functions rather than to try and have them handle both shared and local
      comments.  I believe this is simpler for the code and not an issue for
      callers because they know what type of object they are dealing with.
      This has resulted in a shobj_description function analagous to
      obj_description and backend functions [Create/Delete]SharedComments
      mirroring the existing [Create/Delete]Comments functions.
      
      pg_shdescription.h goes into src/include/catalog/
      
      Kris Jurka
      f9a726aa
  24. 10 12月, 2005 1 次提交
  25. 09 9月, 2005 1 次提交
  26. 14 7月, 2005 1 次提交
  27. 08 7月, 2005 1 次提交
  28. 28 6月, 2005 1 次提交
    • T
      Replace pg_shadow and pg_group by new role-capable catalogs pg_authid · 7762619e
      Tom Lane 提交于
      and pg_auth_members.  There are still many loose ends to finish in this
      patch (no documentation, no regression tests, no pg_dump support for
      instance).  But I'm going to commit it now anyway so that Alvaro can
      make some progress on shared dependencies.  The catalog changes should
      be pretty much done.
      7762619e
  29. 22 7月, 2004 2 次提交
  30. 18 6月, 2004 1 次提交
    • T
      Tablespaces. Alternate database locations are dead, long live tablespaces. · 2467394e
      Tom Lane 提交于
      There are various things left to do: contrib dbsize and oid2name modules
      need work, and so does the documentation.  Also someone should think about
      COMMENT ON TABLESPACE and maybe RENAME TABLESPACE.  Also initlocation is
      dead, it just doesn't know it yet.
      
      Gavin Sherry and Tom Lane.
      2467394e
  31. 04 1月, 2004 1 次提交
  32. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  33. 11 11月, 2003 1 次提交
  34. 02 8月, 2003 1 次提交
  35. 07 4月, 2003 1 次提交
  36. 15 1月, 2003 1 次提交
  37. 14 1月, 2003 1 次提交