Skip to content
Snippets Groups Projects
  1. Mar 10, 2017
    • Andres Freund's avatar
      Add amcheck extension to contrib. · 3717dc14
      Andres Freund authored
      This is the beginning of a collection of SQL-callable functions to
      verify the integrity of data files.  For now it only contains code to
      verify B-Tree indexes.
      
      This adds two SQL-callable functions, validating B-Tree consistency to
      a varying degree.  Check the, extensive, docs for details.
      
      The goal is to later extend the coverage of the module to further
      access methods, possibly including the heap.  Once checks for
      additional access methods exist, we'll likely add some "dispatch"
      functions that cover multiple access methods.
      
      Author: Peter Geoghegan, editorialized by Andres Freund
      Reviewed-By: Andres Freund, Tomas Vondra, Thomas Munro,
         Anastasia Lubennikova, Robert Haas, Amit Langote
      Discussion: CAM3SWZQzLMhMwmBqjzK+pRKXrNUZ4w90wYMUWfkeV8mZ3Debvw@mail.gmail.com
      3717dc14
  2. Feb 13, 2017
    • Robert Haas's avatar
      Remove contrib/tsearch2. · 7ada2d31
      Robert Haas authored
      This module was intended to ease migrations of applications that used
      the pre-8.3 version of text search to the in-core version introduced
      in that release.  However, since all pre-8.3 releases of the database
      have been out of support for more than 5 years at this point, we
      expect that few people are depending on it at this point.  If some
      people still need it, nothing prevents it from being maintained as a
      separate extension, outside of core.
      
      Discussion: http://postgr.es/m/CA+Tgmob5R8aDHiFRTQsSJbT1oreKg2FOSBrC=2f4tqEH3dOMAg@mail.gmail.com
      7ada2d31
  3. Apr 01, 2016
    • Teodor Sigaev's avatar
      Bloom index contrib module · 9ee014fc
      Teodor Sigaev authored
      Module provides new access method. It is actually a simple Bloom filter
      implemented as pgsql's index. It could give some benefits on search
      with large number of columns.
      
      Module is a single way to test generic WAL interface committed earlier.
      
      Author: Teodor Sigaev, Alexander Korotkov
      Reviewers: Aleksander Alekseev, Michael Paquier, Jim Nasby
      9ee014fc
  4. Mar 08, 2016
    • Robert Haas's avatar
      Add pg_visibility contrib module. · ba0a198f
      Robert Haas authored
      This lets you examine the visibility map as well as page-level
      visibility information.  I initially wrote it as a debugging aid,
      but was encouraged to polish it for commit.
      
      Patch by me, reviewed by Masahiko Sawada.
      
      Discussion: 56D77803.6080503@BlueTreble.com
      ba0a198f
  5. May 28, 2015
  6. May 15, 2015
  7. May 14, 2015
    • Stephen Frost's avatar
      Add pg_audit, an auditing extension · ac52bb04
      Stephen Frost authored
      This extension provides detailed logging classes, ability to control
      logging at a per-object level, and includes fully-qualified object
      names for logged statements (DML and DDL) in independent fields of the
      log output.
      
      Authors: Ian Barwick, Abhijit Menon-Sen, David Steele
      Reviews by: Robert Haas, Tatsuo Ishii, Sawada Masahiko, Fujii Masao,
      Simon Riggs
      
      Discussion with: Josh Berkus, Jaime Casanova, Peter Eisentraut,
      David Fetter, Yeb Havinga, Alvaro Herrera, Petr Jelinek, Tom Lane,
      MauMau, Bruce Momjian, Jim Nasby, Michael Paquier,
      Fabrízio de Royes Mello, Neil Tiffin
      ac52bb04
  8. Apr 26, 2015
    • Peter Eisentraut's avatar
      Add transforms feature · cac76582
      Peter Eisentraut authored
      This provides a mechanism for specifying conversions between SQL data
      types and procedural languages.  As examples, there are transforms
      for hstore and ltree for PL/Perl and PL/Python.
      
      reviews by Pavel Stěhule and Andres Freund
      cac76582
  9. Apr 22, 2015
  10. Apr 21, 2015
  11. Apr 20, 2015
  12. Apr 15, 2015
  13. Apr 13, 2015
  14. Apr 12, 2015
  15. Nov 30, 2014
    • Alvaro Herrera's avatar
      Move test modules from contrib to src/test/modules · 22dfd116
      Alvaro Herrera authored
      This is advance preparation for introducing even more test modules; the
      easy solution is to add them to contrib, but that's bloated enough that
      it seems a good time to think of something different.
      
      Moved modules are dummy_seclabel, test_shm_mq, test_parser and
      worker_spi.
      
      (test_decoding was also a candidate, but there was too much opposition
      to moving that one.  We can always reconsider later.)
      22dfd116
  16. May 28, 2014
    • Tom Lane's avatar
      Support BSD and e2fsprogs UUID libraries alongside OSSP UUID library. · b8cc8f94
      Tom Lane authored
      Allow the contrib/uuid-ossp extension to be built atop any one of these
      three popular UUID libraries.  (The extension's name is now arguably a
      misnomer, but we'll keep it the same so as not to cause unnecessary
      compatibility issues for users.)
      
      We would not normally consider a change like this post-beta1, but the issue
      has been forced by our upgrade to autoconf 2.69, whose more rigorous header
      checks are causing OSSP's header files to be rejected on some platforms.
      It's been foreseen for some time that we'd have to move away from depending
      on OSSP UUID due to lack of upstream maintenance, so this is a down payment
      on that problem.
      
      While at it, add some simple regression tests, in hopes of catching any
      major incompatibilities between the three implementations.
      
      Matteo Beccati, with some further hacking by me
      b8cc8f94
  17. Mar 03, 2014
    • Robert Haas's avatar
      Introduce logical decoding. · b89e1510
      Robert Haas authored
      This feature, building on previous commits, allows the write-ahead log
      stream to be decoded into a series of logical changes; that is,
      inserts, updates, and deletes and the transactions which contain them.
      It is capable of handling decoding even across changes to the schema
      of the effected tables.  The output format is controlled by a
      so-called "output plugin"; an example is included.  To make use of
      this in a real replication system, the output plugin will need to be
      modified to produce output in the format appropriate to that system,
      and to perform filtering.
      
      Currently, information can be extracted from the logical decoding
      system only via SQL; future commits will add the ability to stream
      changes via walsender.
      
      Andres Freund, with review and other contributions from many other
      people, including Álvaro Herrera, Abhijit Menon-Sen, Peter Gheogegan,
      Kevin Grittner, Robert Haas, Heikki Linnakangas, Fujii Masao, Abhijit
      Menon-Sen, Michael Paquier, Simon Riggs, Craig Ringer, and Steve
      Singer.
      b89e1510
  18. Jan 14, 2014
    • Robert Haas's avatar
      Test code for shared memory message queue facility. · 4db3744f
      Robert Haas authored
      This code is intended as a demonstration of how the dynamic shared
      memory and dynamic background worker facilities can be used to establish
      a group of coooperating processes which can coordinate their activities
      using the shared memory message queue facility.  By itself, the code
      does nothing particularly interesting: it simply allows messages to
      be passed through a loop of workers and back to the original process.
      But it's a useful unit test, in addition to its demonstration value.
      4db3744f
  19. Dec 20, 2013
  20. Feb 22, 2013
  21. Feb 21, 2013
    • Tom Lane's avatar
      Add postgres_fdw contrib module. · d0d75c40
      Tom Lane authored
      There's still a lot of room for improvement, but it basically works,
      and we need this to be present before we can do anything much with the
      writable-foreign-tables patch.  So let's commit it and get on with testing.
      
      Shigeru Hanada, reviewed by KaiGai Kohei and Tom Lane
      d0d75c40
  22. Dec 06, 2012
    • Alvaro Herrera's avatar
      Background worker processes · da07a1e8
      Alvaro Herrera authored
      Background workers are postmaster subprocesses that run arbitrary
      user-specified code.  They can request shared memory access as well as
      backend database connections; or they can just use plain libpq frontend
      database connections.
      
      Modules listed in shared_preload_libraries can register background
      workers in their _PG_init() function; this is early enough that it's not
      necessary to provide an extra GUC option, because the necessary extra
      resources can be allocated early on.  Modules can install more than one
      bgworker, if necessary.
      
      Care is taken that these extra processes do not interfere with other
      postmaster tasks: only one such process is started on each ServerLoop
      iteration.  This means a large number of them could be waiting to be
      started up and postmaster is still able to quickly service external
      connection requests.  Also, shutdown sequence should not be impacted by
      a worker process that's reasonably well behaved (i.e. promptly responds
      to termination signals.)
      
      The current implementation lets worker processes specify their start
      time, i.e. at what point in the server startup process they are to be
      started: right after postmaster start (in which case they mustn't ask
      for shared memory access), when consistent state has been reached
      (useful during recovery in a HOT standby server), or when recovery has
      terminated (i.e. when normal backends are allowed).
      
      In case of a bgworker crash, actions to take depend on registration
      data: if shared memory was requested, then all other connections are
      taken down (as well as other bgworkers), just like it were a regular
      backend crashing.  The bgworker itself is restarted, too, within a
      configurable timeframe (which can be configured to be never).
      
      More features to add to this framework can be imagined without much
      effort, and have been discussed, but this seems good enough as a useful
      unit already.
      
      An elementary sample module is supplied.
      
      Author: Álvaro Herrera
      
      This patch is loosely based on prior patches submitted by KaiGai Kohei,
      and unsubmitted code by Simon Riggs.
      
      Reviewed by: KaiGai Kohei, Markus Wanner, Andres Freund,
      Heikki Linnakangas, Simon Riggs, Amit Kapila
      da07a1e8
  23. Mar 27, 2012
  24. Jan 20, 2012
  25. Jul 03, 2011
    • Tom Lane's avatar
      Make distprep and *clean build targets recurse into all subdirectories. · acb9198b
      Tom Lane authored
      Certain subdirectories do not get built if corresponding options are not
      selected at configure time.  However, "make distprep" should visit such
      directories anyway, so that constructing derived files to be included in
      the tarball happens without requiring all configure options to be given
      in the tarball build script.  Likewise, it's better if cleanup actions
      unconditionally visit all directories (for example, this ensures proper
      cleanup if someone has done a manual make in such a subdirectory).
      
      To handle this, set up a convention that subdirectories that are
      conditionally included in SUBDIRS should be added to ALWAYS_SUBDIRS
      instead when they are excluded.
      
      Back-patch to 9.1, so that plpython's spiexceptions.h will get provided
      in 9.1 tarballs.  There don't appear to be any instances where distprep
      actions got missed in previous releases, and anyway this fix requires
      gmake 3.80 so we don't want to apply it before 9.1.
      acb9198b
  26. Feb 20, 2011
    • Tom Lane's avatar
      Add contrib/file_fdw foreign-data wrapper for reading files via COPY. · 7c5d0ae7
      Tom Lane authored
      This is both very useful in its own right, and an important test case
      for the core FDW support.
      
      This commit includes a small refactoring of copy.c to expose its option
      checking code as a separately callable function.  The original patch
      submission duplicated hundreds of lines of that code, which seemed pretty
      unmaintainable.
      
      Shigeru Hanada, reviewed by Itagaki Takahiro and Tom Lane
      7c5d0ae7
  27. Jan 24, 2011
  28. Jan 22, 2011
    • Tom Lane's avatar
      Clean up pg_test_fsync commit. · bc616703
      Tom Lane authored
      Actually rename the program, rather than just claiming we did.  Hook it
      into the build system.  Get rid of useless dependency on libpq.  Clean up
      #include list and messy whitespace.
      bc616703
  29. Nov 27, 2010
  30. Nov 12, 2010
    • Peter Eisentraut's avatar
      Improved parallel make support · 19e231bb
      Peter Eisentraut authored
      Replace for loops in makefiles with proper dependencies.  Parallel
      make can now span across directories.  Also, make -k and make -q work
      properly.
      
      GNU make 3.80 or newer is now required.
      19e231bb
  31. Sep 28, 2010
    • Robert Haas's avatar
      Add a SECURITY LABEL command. · 4d355a83
      Robert Haas authored
      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
  32. Sep 20, 2010
  33. Jun 14, 2010
  34. May 13, 2010
  35. May 12, 2010
  36. Nov 18, 2009
  37. Aug 18, 2009
  38. Aug 07, 2009
    • Peter Eisentraut's avatar
      Expand test coverage support to entire tree · 7798147a
      Peter Eisentraut authored
      Test coverage support now covers the entire source tree, including
      contrib, instead of just src/backend.  In a related but independent
      development, the commands make coverage and make coverage-html can be run
      in any directory.
      
      This turned out to be much easier than feared.  Besides a few ad hoc fixes
      to pass the make target down the tree, change all affected makefiles to
      list their directories in the SUBDIRS variable, changed from variants like
      DIRS and WANTED_DIRS.  MSVC build fix was attempted as well.
      7798147a
  39. Mar 26, 2009
Loading