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. Jul 04, 2011
  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. Sep 22, 2010
  6. Sep 20, 2010
  7. Dec 14, 2009
  8. Nov 13, 2007
  9. Nov 11, 2007
  10. Jun 27, 2007
  11. Sep 11, 2006
  12. Jul 11, 2006
  13. May 31, 2006
  14. Sep 27, 2005
  15. Jun 23, 2005
    • Tom Lane's avatar
      Cleanup the contrib/lo module: there is no need anymore to implement · 5b0c9d36
      Tom Lane authored
      a physically separate type.  Defining 'lo' as a domain over OID works
      just fine and is more efficient.  Improve documentation and fix up the
      test script.  (Would like to turn test script into a proper regression
      test, but right now its output is not constant because of numeric OIDs;
      plus it makes Unix-specific assumptions about files it can import.)
      5b0c9d36
  16. Jan 29, 2005
  17. 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
  18. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 55b11325
      PostgreSQL Daemon authored
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  19. Jul 24, 2003
  20. May 14, 2003
  21. Dec 31, 2002
  22. Oct 18, 2002
  23. Aug 22, 2002
  24. Aug 15, 2002
    • Bruce Momjian's avatar
      The attached patch changes most of the usages of sprintf() to · 66eb8df6
      Bruce Momjian authored
      snprintf() in contrib/. I didn't touch the places where pointer
      arithmatic was being used, or other areas where the fix wasn't
      trivial. I would think that few, if any, of the usages of sprintf()
      were actually exploitable, but it's probably better to be paranoid...
      
      Neil Conway
      66eb8df6
  25. Dec 07, 2001
  26. Oct 28, 2001
  27. Oct 25, 2001
  28. Sep 06, 2001
  29. Jun 18, 2001
    • Bruce Momjian's avatar
      The attached patch enables the contrib subtree to build cleanly under · 558fae16
      Bruce Momjian authored
      Cygwin with the possible exception of mSQL-interface.  Since I don't
      have mSQL installed, I skipped this tool.
      
      Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
      the bulk of the patch uses the standard PostgreSQL approach to deal with
      Windows DLL issues.
      
      I tested the build aspect of this patch under Cygwin and Linux without
      any ill affects.  Note that I did not actually attempt to test the code
      for functionality.
      
      The procedure to apply the patch is as follows:
      
          $ # save the attachment as /tmp/contrib.patch
          $ # change directory to the top of the PostgreSQL source tree
          $ patch -p0 </tmp/contrib.patch
      
      Jason
      558fae16
  30. Mar 22, 2001
  31. Feb 20, 2001
  32. Feb 10, 2001
    • Tom Lane's avatar
      Restructure the key include files per recent pghackers discussion: there · d08741ea
      Tom Lane authored
      are now separate files "postgres.h" and "postgres_fe.h", which are meant
      to be the primary include files for backend .c files and frontend .c files
      respectively.  By default, only include files meant for frontend use are
      installed into the installation include directory.  There is a new make
      target 'make install-all-headers' that adds the whole content of the
      src/include tree to the installed fileset, for use by people who want to
      develop server-side code without keeping the complete source tree on hand.
      Cleaned up a whole lot of crufty and inconsistent header inclusions.
      d08741ea
  33. Nov 21, 2000
  34. Nov 20, 2000
    • Tom Lane's avatar
      Revise handling of oldstyle/newstyle functions per recent discussions · 5bb2300b
      Tom Lane authored
      in pghackers list.  Support for oldstyle internal functions is gone
      (no longer needed, since conversion is complete) and pg_language entry
      'internal' now implies newstyle call convention.  pg_language entry
      'newC' is gone; both old and newstyle dynamically loaded C functions
      are now called language 'C'.  A newstyle function must be identified
      by an associated info routine.  See src/backend/utils/fmgr/README.
      5bb2300b
  35. Oct 20, 2000
  36. Jul 09, 2000
    • Peter Eisentraut's avatar
      Another round of those unportable config/build changes :-/ · 74618e2b
      Peter Eisentraut authored
      * Add option to build with OpenSSL out of the box. Fix thusly exposed
        bit rot. Although it compiles now, getting this to do something
        useful is left as an exercise.
      
      * Fix Kerberos options to defer checking for required libraries until
        all the other libraries are checked for.
      
      * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc.
      
      * Install work around for Autoconf's install-sh relative path anomaly.
        Get rid of old INSTL_*_OPTS variables, now that we don't need them
        anymore.
      
      * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX.
      
      * Look for only one of readline.h or readline/readline.h, not both.
      
      * Make check for PS_STRINGS cacheable. Don't test for the header files
        separately.
      
      * Disable fcntl(F_SETLK) test on Linux.
      
      * Substitute the standard GCC warnings set into CFLAGS in configure,
        don't add it on in Makefile.global.
      
      * Sweep through contrib tree to teach makefiles standard semantics.
      
      ... and in completely unrelated news:
      
      * Make postmaster.opts arbitrary options-aware. I still think we need to
        save the environment as well.
      74618e2b
Loading