Skip to content
Snippets Groups Projects
  1. Oct 03, 2015
    • Andres Freund's avatar
      Add CASCADE support for CREATE EXTENSION. · b67aaf21
      Andres Freund authored
      Without CASCADE, if an extension has an unfullfilled dependency on
      another extension, CREATE EXTENSION ERRORs out with "required extension
      ... is not installed". That is annoying, especially when that dependency
      is an implementation detail of the extension, rather than something the
      extension's user can make sense of.
      
      In addition to CASCADE this also includes a small set of regression
      tests around CREATE EXTENSION.
      
      Author: Petr Jelinek, editorialized by Michael Paquier, Andres Freund
      Reviewed-By: Michael Paquier, Andres Freund, Jeff Janes
      Discussion: 557E0520.3040800@2ndquadrant.com
      b67aaf21
  2. Sep 05, 2015
    • Tom Lane's avatar
      Rearrange the handling of error context reports. · 0426f349
      Tom Lane authored
      Remove the code in plpgsql that suppressed the innermost line of CONTEXT
      for messages emitted by RAISE commands.  That was never more than a quick
      backwards-compatibility hack, and it's pretty silly in cases where the
      RAISE is nested in several levels of function.  What's more, it violated
      our design theory that verbosity of error reports should be controlled
      on the client side not the server side.
      
      To alleviate the resulting noise increase, introduce a feature in libpq
      and psql whereby the CONTEXT field of messages can be suppressed, either
      always or only for non-error messages.  Printing CONTEXT for errors only
      is now their default behavior.
      
      The actual code changes here are pretty small, but the effects on the
      regression test outputs are widespread.  I had to edit some of the
      alternative expected outputs by hand; hopefully the buildfarm will soon
      find anything I fat-fingered.
      
      In passing, fix up (again) the output line counts in psql's various
      help displays.  Add some commentary about how to verify them.
      
      Pavel Stehule, reviewed by Petr Jelínek, Jeevan Chalke, and others
      0426f349
  3. Jul 18, 2015
  4. Jul 16, 2015
    • Noah Misch's avatar
      AIX: Link TRANSFORM modules with their dependencies. · 71934367
      Noah Misch authored
      The result closely resembles linking of these modules for the "win32"
      port.  Augment the $(exports_file) header so the file is also usable as
      an import file.  Unfortunately, relocating an AIX installation will now
      require adding $(pkglibdir) to LD_LIBRARY_PATH.  Back-patch to 9.5,
      where the modules were introduced.
      71934367
    • Noah Misch's avatar
      MinGW: Link ltree_plpython with plpython. · 736c1f23
      Noah Misch authored
      The MSVC build system already did this, and building against Python 3
      requires it.  Back-patch to 9.5, where the module was introduced.
      736c1f23
  5. May 24, 2015
    • Tom Lane's avatar
      Remove no-longer-required function declarations. · 91e79260
      Tom Lane authored
      Remove a bunch of "extern Datum foo(PG_FUNCTION_ARGS);" declarations that
      are no longer needed now that PG_FUNCTION_INFO_V1(foo) provides that.
      
      Some of these were evidently missed in commit e7128e8d, but others
      were cargo-culted in in code added since then.  Possibly that can be blamed
      in part on the fact that we'd not fixed relevant documentation examples,
      which I've now done.
      91e79260
    • Bruce Momjian's avatar
      pgindent run for 9.5 · 807b9e0d
      Bruce Momjian authored
      807b9e0d
  6. May 18, 2015
    • Tom Lane's avatar
      Use += not = to set makefile variables after including base makefiles. · b14cf229
      Tom Lane authored
      The previous coding in hstore_plpython and ltree_plpython wiped out any
      values set by the base makefiles.  This at least had the effect of running
      the tests in "regression" not "contrib_regression" as expected.  These
      being pretty new modules, there might be other bad effects we'd not
      noticed yet.
      b14cf229
  7. May 03, 2015
    • Andrew Dunstan's avatar
      Enable transforms modules to build and run with Mingw builds. · f802c6dd
      Andrew Dunstan authored
      These modules were all missing essential Windows scaffolding, including
      resources files and descriptions, and links to the relevant library
      import files. This latter item means that the modules can't be built
      with pgxs on Windows, as we don't install the import files. If we ever
      decide to install them this restriction could probably be removed.
      
      Also, as with plperl we need to make sure that perl's CORE directory is
      last on the include list, as on Windows it appears to contain some
      headers with names that clash with names of some headers we include.
      f802c6dd
  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
Loading