1. 19 6月, 2018 1 次提交
  2. 13 1月, 2018 1 次提交
    • H
      Remove filespaces. · 5a3a39bc
      Heikki Linnakangas 提交于
      Remove the concept of filespaces, revert tablespaces to work the same as
      in upstream.
      
      There is some leftovers in management tools. I don't know how to test all
      that, and I was afraid of touching things I can't run. Also, we may need
      to create replacements for some of those things on top of tablespaces, to
      make the management of tablespaces easier, and it might be easier to modify
      the existing tools than write them from scratch. (Yeah, you could always
      look at the git history, but still.)
      
      Per the discussion on gpdb-dev mailing list, the plan is to cherry-pick
      commit 16d8e594 from PostgreSQL 9.2, to make it possible to have a
      different path for a tablespace in the primary and its mirror. But that's
      not included in this commit yet.
      
      TODO: Make temp_tablespaces work.
      TODO: Make pg_dump do something sensible, when dumping from a GPDB 5 cluster
      that uses filespaces. Same with pg_upgrade.
      
      Discussion: https://groups.google.com/a/greenplum.org/d/msg/gpdb-dev/sON4lraPEqg/v3lkM587BAAJ
      5a3a39bc
  3. 30 10月, 2017 1 次提交
  4. 07 4月, 2017 1 次提交
  5. 16 3月, 2017 1 次提交
    • P
      Implement CREATE RESOURCE GROUP syntax. · 8ab1ccdb
      Pengzhou Tang 提交于
      There are two default resource groups 'default_group' and 'admin_group',
      to create more please use the CREATE RESOURCE GROUP command, group
      options can be specified with the WITH clause, at the moment
      'cpu_rate_limit' and 'memory_limit' are mandatory, other options are
      all optional.
      
          -- create a resource group
          CREATE RESOURCE GROUP rg1 WITH (
              concurrency=1,
              cpu_rate_limit=.2,
              memory_limit=.2
          );
          -- query the resource group
          SELECT oid FROM pg_resgroup WHERE rsgname='rg1';
          SELECT * from gp_toolkit.gp_resgroup_config
              WHERE groupname='rg1';
          -- create/alter a role and assign it to this group
          CREATE ROLE r1 RESOURCE GROUP rg1;
          ALTER ROLE r2 RESOURCE GROUP rg1;
      
      *NOTE*: this commit only implement the SQL syntax, the actual resource
      limitation will not take effect at the moment as the resource group is
      still under development.
      
      *NOTE*: test cases are not included in this commit as once a testing
      resgroup is created it can't be dropped due to lack of DROP syntax, so
      the test case can't be re-run and will introduce side-effect to the
      system. So it's better to provide test cases after the DROP RESOURCE
      GROUP is implemented.
      Signed-off-by: NNing Yu <nyu@pivotal.io>
      8ab1ccdb
  6. 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
  7. 12 8月, 2016 1 次提交
  8. 10 2月, 2016 1 次提交
    • H
      Use upstream ANALYZE code. · f995c59f
      Heikki Linnakangas 提交于
      This replaces most of the Greenplum code used to ANALYZE a relation with
      the upstream implementation.
      
      I did not adopt the upstream block-sampling method of collecting the
      sample, however. That would difficult to make work with GPDB, because the
      upstream code won't work as is with Append-only tables, and we would also
      need to somehow dispatch the block-sampling to all the segments. So the
      simplistic "SELECT ... WHERE random() < threshold" method is still used to
      collect the sample. However, it's now just a straightforward read-only
      query, we no longer create a table to hold the sample, which makes it a lot
      cheaper for small tables.
      
      This should make merging with upstream easier. This should also speed up
      ANALYZE considerably, as we now collect the sample of rows in one query,
      and calculate the stats for each column in-memory, instead of issuing
      separate queries for each column.
      f995c59f
  9. 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
  10. 28 10月, 2015 1 次提交
  11. 12 2月, 2011 1 次提交
    • P
      DDL support for collations · b313bca0
      Peter Eisentraut 提交于
      - collowner field
      - CREATE COLLATION
      - ALTER COLLATION
      - DROP COLLATION
      - COMMENT ON COLLATION
      - integration with extensions
      - pg_dump support for the above
      - dependency management
      - psql tab completion
      - psql \dO command
      b313bca0
  12. 09 2月, 2011 1 次提交
    • T
      Core support for "extensions", which are packages of SQL objects. · d9572c4e
      Tom Lane 提交于
      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
      d9572c4e
  13. 28 9月, 2010 1 次提交
    • R
      Add a SECURITY LABEL command. · 4d355a83
      Robert Haas 提交于
      This is intended as infrastructure to support integration with label-based
      mandatory access control systems such as SE-Linux. Further changes (mostly
      hooks) will be needed, but this is a big chunk of it.
      
      KaiGai Kohei and Robert Haas
      4d355a83
  14. 21 9月, 2010 1 次提交
  15. 30 7月, 2009 1 次提交
    • T
      Support deferrable uniqueness constraints. · 25d9bf2e
      Tom Lane 提交于
      The current implementation fires an AFTER ROW trigger for each tuple that
      looks like it might be non-unique according to the index contents at the
      time of insertion.  This works well as long as there aren't many conflicts,
      but won't scale to massive unique-key reassignments.  Improving that case
      is a TODO item.
      
      Dean Rasheed
      25d9bf2e
  16. 20 12月, 2008 1 次提交
    • P
      SQL/MED catalog manipulation facilities · cae565e5
      Peter Eisentraut 提交于
      This doesn't do any remote or external things yet, but it gives modules
      like plproxy and dblink a standardized and future-proof system for
      managing their connection information.
      
      Martin Pihlak and Peter Eisentraut
      cae565e5
  17. 19 2月, 2008 1 次提交
  18. 21 8月, 2007 1 次提交
  19. 27 4月, 2007 1 次提交
    • N
      Rename the newly-added commands for discarding session state. · 16efdb5e
      Neil Conway 提交于
      RESET SESSION, RESET PLANS, and RESET TEMP are now DISCARD ALL,
      DISCARD PLANS, and DISCARD TEMP, respectively. This is to avoid
      confusion with the pre-existing RESET variants: the DISCARD
      commands are not actually similar to RESET. Patch from Marko
      Kreen, with some minor editorialization.
      16efdb5e
  20. 21 1月, 2007 1 次提交
  21. 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
  22. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  23. 27 6月, 2003 1 次提交
  24. 27 8月, 2002 1 次提交
  25. 30 7月, 2002 1 次提交
    • T
      Implement CREATE/DROP OPERATOR CLASS. Work still remains: need more · ea4686e3
      Tom Lane 提交于
      documentation (xindex.sgml should be rewritten), need to teach pg_dump
      about it, need to update contrib modules that currently build pg_opclass
      entries by hand.  Original patch by Bill Studenmund, grammar adjustments
      and general update for 7.3 by Tom Lane.
      ea4686e3
  26. 11 7月, 2002 1 次提交
    • T
      Add new CREATE CONVERSION/DROP CONVERSION command. · fcc96256
      Tatsuo Ishii 提交于
      This is the first cut toward CREATE CONVERSION/DROP CONVERSION implementaion.
      The commands can now add/remove tuples to the new pg_conversion system
      catalog, but that's all. Still need work to make them actually working.
      Documentations, regression tests also need work.
      fcc96256
  27. 15 4月, 2002 1 次提交
    • T
      The contents of command.c, creatinh.c, define.c, remove.c and rename.c · 71dc300a
      Tom Lane 提交于
      have been divided according to the type of object manipulated - so ALTER
      TABLE code is in tablecmds.c, aggregate commands in aggregatecmds.c and
      so on.
      
      A few common support routines remain in define.c (prototypes in
      src/include/commands/defrem.h).
      
      No code has been changed except for includes to reflect the new files.
      The prototypes for aggregatecmds.c, functioncmds.c, operatorcmds.c,
      and typecmds.c remain in src/include/commands/defrem.h.
      
      From John Gray <jgray@azuli.co.uk>
      71dc300a
  28. 14 7月, 2001 1 次提交
  29. 01 9月, 2000 1 次提交
  30. 30 5月, 2000 1 次提交
  31. 29 5月, 2000 1 次提交
  32. 19 1月, 2000 1 次提交
  33. 14 12月, 1999 1 次提交
  34. 10 12月, 1999 1 次提交
  35. 27 10月, 1999 1 次提交
  36. 26 10月, 1999 1 次提交
    • B
      Hello. · 577e21b3
      Bruce Momjian 提交于
      The following patch extends the COMMENT ON functionality to the
      rest of the database objects beyond just tables, columns, and views. The
      grammer of the COMMENT ON statement now looks like:
      
      COMMENT ON [
        [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] <objname>
      |
      
        COLUMN <relation>.<attribute> |
        AGGREGATE <aggname> <aggtype> |
        FUNCTION <funcname> (arg1, arg2, ...) |
        OPERATOR <op> (leftoperand_typ rightoperand_typ) |
        TRIGGER <triggername> ON relname>
      
      Mike Mascari
      (mascarim@yahoo.com)
      577e21b3
  37. 28 2月, 1999 1 次提交
  38. 25 2月, 1999 1 次提交
  39. 09 10月, 1998 1 次提交