Skip to content
Snippets Groups Projects
  1. Oct 12, 2011
    • Tom Lane's avatar
      Throw a useful error message if an extension script file is fed to psql. · 458857cc
      Tom Lane authored
      We have seen one too many reports of people trying to use 9.1 extension
      files in the old-fashioned way of sourcing them in psql.  Not only does
      that usually not work (due to failure to substitute for MODULE_PATHNAME
      and/or @extschema@), but if it did work they'd get a collection of loose
      objects not an extension.  To prevent this, insert an \echo ... \quit
      line that prints a suitable error message into each extension script file,
      and teach commands/extension.c to ignore lines starting with \echo.
      That should not only prevent any adverse consequences of loading a script
      file the wrong way, but make it crystal clear to users that they need to
      do it differently now.
      
      Tom Lane, following an idea of Andrew Dunstan's.  Back-patch into 9.1
      ... there is not going to be much value in this if we wait till 9.2.
      458857cc
  2. Aug 24, 2011
    • Tom Lane's avatar
      Avoid locale dependency in expected output. · ba69b419
      Tom Lane authored
      We'll have to settle for just listing the extensions' data types,
      since function arguments seem to sort differently in different locales.
      Per buildfarm results.
      ba69b419
    • Tom Lane's avatar
      Fix multiple bugs in extension dropping. · cb5c2ba2
      Tom Lane authored
      When we implemented extensions, we made findDependentObjects() treat
      EXTENSION dependency links similarly to INTERNAL links.  However, that
      logic contained an implicit assumption that an object could have at most
      one INTERNAL dependency, so it did not work correctly for objects having
      both INTERNAL and DEPENDENCY links.  This led to failure to drop some
      extension member objects when dropping the extension.  Furthermore, we'd
      never actually exercised the case of recursing to an internally-referenced
      (owning) object from anything other than a NORMAL dependency, and it turns
      out that passing the incoming dependency's flags to the owning object is
      the Wrong Thing.  This led to sometimes dropping a whole extension silently
      when we should have rejected the drop command for lack of CASCADE.
      
      Since we obviously were under-testing extension drop scenarios, add some
      regression test cases.  Unfortunately, such test cases require some
      extensions (duh), so we can't test for problems in the core regression
      tests.  I chose to add them to the earthdistance contrib module, which is
      a good test case because it has a dependency on the cube contrib module.
      
      Back-patch to 9.1.  Arguably these are pre-existing bugs in INTERNAL
      dependency handling, but since it appears that the cases can never arise
      pre-9.1, I'll refrain from back-patching the logic changes further than
      that.
      cb5c2ba2
  3. Apr 25, 2011
    • Peter Eisentraut's avatar
      Support "make check" in contrib · f8ebe3bc
      Peter Eisentraut authored
      Added a new option --extra-install to pg_regress to arrange installing
      the respective contrib directory into the temporary installation.
      This is currently not yet supported for Windows MSVC builds.
      
      Updated the .gitignore files for contrib modules to ignore the
      leftovers of a temp-install check run.
      
      Changed the exit status of "make check" in a pgxs build (which still
      does nothing) to 0 from 1.
      
      Added "make check" in contrib to top-level "make check-world".
      f8ebe3bc
  4. Feb 14, 2011
    • Tom Lane's avatar
      Avoid use of CREATE OR REPLACE FUNCTION in extension installation files. · 029fac22
      Tom Lane authored
      It was never terribly consistent to use OR REPLACE (because of the lack of
      comparable functionality for data types, operators, etc), and
      experimentation shows that it's now positively pernicious in the extension
      world.  We really want a failure to occur if there are any conflicts, else
      it's unclear what the extension-ownership state of the conflicted object
      ought to be.  Most of the time, CREATE EXTENSION will fail anyway because
      of conflicts on other object types, but an extension defining only
      functions can succeed, with bad results.
      029fac22
    • Tom Lane's avatar
      Convert contrib modules to use the extension facility. · 629b3af2
      Tom Lane authored
      This isn't fully tested as yet, in particular I'm not sure that the
      "foo--unpackaged--1.0.sql" scripts are OK.  But it's time to get some
      buildfarm cycles on it.
      
      sepgsql is not converted to an extension, mainly because it seems to
      require a very nonstandard installation process.
      
      Dimitri Fontaine and Tom Lane
      629b3af2
  5. Nov 23, 2010
  6. Sep 22, 2010
  7. Sep 20, 2010
  8. Jul 06, 2010
    • Tom Lane's avatar
      Fix a few single-file (MODULES, not MODULE_big) contrib makefiles that were · f9e9da66
      Tom Lane authored
      supposing that they should set SHLIB_LINK rather than LDFLAGS_SL.  Since these
      don't go through Makefile.shlib that was a no-op on most platforms.  Also
      regularize the few platform-specific Makefiles that did pay attention to
      SHLIB_LINK: it seems that the real value of that is to pull in BE_DLLLIBS,
      so do that instead.  Per buildfarm failures on cygwin.
      f9e9da66
  9. Jun 11, 2009
  10. Apr 21, 2008
    • Tom Lane's avatar
      Make earthdistance use version-0 calling convention if not USE_FLOAT8_BYVAL, · 3d1588cd
      Tom Lane authored
      and version-1 if USE_FLOAT8_BYVAL.  This might seem a bit pointless, but the
      idea is to have at least one regression test that will fail if we ever
      accidentally break version-0 functions that return float8.  However, they're
      already broken, or at least hopelessly unportable, in the USE_FLOAT8_BYVAL
      case.
      
      Per a recent suggestion from Greg Stark.
      3d1588cd
  11. Apr 20, 2008
  12. Nov 13, 2007
  13. Nov 11, 2007
  14. Jun 27, 2007
  15. Feb 01, 2007
  16. Oct 19, 2006
  17. Sep 10, 2006
  18. Jul 27, 2006
  19. May 31, 2006
  20. Mar 14, 2006
    • Tom Lane's avatar
      Improve parser so that we can show an error cursor position for errors · 20ab467d
      Tom Lane authored
      during parse analysis, not only errors detected in the flex/bison stages.
      This is per my earlier proposal.  This commit includes all the basic
      infrastructure, but locations are only tracked and reported for errors
      involving column references, function calls, and operators.  More could
      be done later but this seems like a good set to start with.  I've also
      moved the ReportSyntaxErrorPosition logic out of psql and into libpq,
      which should make it available to more people --- even within psql this
      is an improvement because warnings weren't handled by ReportSyntaxErrorPosition.
      20ab467d
  21. Mar 11, 2006
  22. Mar 08, 2006
  23. Feb 27, 2006
  24. Oct 15, 2005
  25. Sep 27, 2005
  26. Jul 25, 2005
  27. Oct 05, 2004
  28. Aug 20, 2004
    • Bruce Momjian's avatar
      > Please find enclose a submission to fix these problems. · ee85595d
      Bruce Momjian authored
      >
      > The patch adds missing the "libpgport.a" file to the installation under
      > "install-all-headers". It is needed by some contribs. I install the
      > library in "pkglibdir", but I was wondering whether it should be "libdir"?
      > I was wondering also whether it would make sense to have a "libpgport.so"?
      >
      > It fixes various macros which are used by contrib makefiles, especially
      > libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are
      > needed to
      >
      > It adds the ability to test and use PGXS with contribs, with "make
      > USE_PGXS=1". Without the macro, this is exactly as before, there should be
      > no difference, esp. wrt the vpath feature that seemed broken by previous
      > submission. So it should not harm anybody, and it is useful at least to me.
      >
      > It fixes some inconsistencies in various contrib makefiles
      > (useless override, ":=" instead of "=").
      
      Fabien COELHO
      ee85595d
  29. Dec 27, 2003
  30. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  31. Aug 04, 2003
  32. Aug 01, 2003
  33. Jul 24, 2003
Loading