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. Sep 01, 2011
  3. 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
  4. Nov 23, 2010
  5. Sep 22, 2010
  6. Sep 20, 2010
  7. Jun 11, 2009
  8. Aug 14, 2008
  9. Nov 15, 2007
  10. Nov 13, 2007
  11. Nov 11, 2007
  12. Jul 16, 2007
  13. Jun 27, 2007
  14. Apr 07, 2007
  15. Oct 22, 2006
  16. Oct 19, 2006
  17. Oct 04, 2006
  18. Jul 23, 2006
  19. May 31, 2006
  20. Apr 27, 2006
  21. Feb 27, 2006
  22. Oct 15, 2005
  23. Oct 12, 2005
    • Tom Lane's avatar
      Do all accesses to shared buffer headers through volatile-qualified · 07eeb9d1
      Tom Lane authored
      pointers, to ensure that compilers won't rearrange accesses to occur
      while we're not holding the buffer header spinlock.  It's probably
      not necessary to mark volatile in every single place in bufmgr.c,
      but better safe than sorry.  Per trouble report from Kevin Grittner.
      07eeb9d1
  24. Sep 27, 2005
  25. May 31, 2005
  26. Apr 01, 2005
  27. Mar 31, 2005
  28. Mar 12, 2005
Loading