1. 19 Feb, 2020 1 commit
    • Tom Lane's avatar
      Remove support for upgrading extensions from "unpackaged" state. · 70a77320
      Tom Lane authored
      Andres Freund pointed out that allowing non-superusers to run
      "CREATE EXTENSION ... FROM unpackaged" has security risks, since
      the unpackaged-to-1.0 scripts don't try to verify that the existing
      objects they're modifying are what they expect.  Just attaching such
      objects to an extension doesn't seem too dangerous, but some of them
      do more than that.
      
      We could have resolved this, perhaps, by still requiring superuser
      privilege to use the FROM option.  However, it's fair to ask just what
      we're accomplishing by continuing to lug the unpackaged-to-1.0 scripts
      forward.  None of them have received any real testing since 9.1 days,
      so they may not even work anymore (even assuming that one could still
      load the previous "loose" object definitions into a v13 database).
      And an installation that's trying to go from pre-9.1 to v13 or later
      in one jump is going to have worse compatibility problems than whether
      there's a trivial way to convert their contrib modules into extension
      style.
      
      Hence, let's just drop both those scripts and the core-code support
      for "CREATE EXTENSION ... FROM".
      
      Discussion: https://postgr.es/m/20200213233015.r6rnubcvl4egdh5r@alap3.anarazel.de
      70a77320
  2. 05 Nov, 2019 1 commit
  3. 09 Jun, 2016 1 commit
    • Tom Lane's avatar
      Handle contrib's GIN/GIST support function signature changes honestly. · 749a787c
      Tom Lane authored
      In commits 9ff60273 and dbe23289 I (tgl) fixed the
      signatures of a bunch of contrib's GIN and GIST support functions so that
      they would pass validation by the recently-added amvalidate functions.
      The backend does not actually consult or check those signatures otherwise,
      so I figured this was basically cosmetic and did not require an extension
      version bump.  However, Alexander Korotkov pointed out that that would
      leave us in a pretty messy situation if we ever wanted to redefine those
      functions later, because there wouldn't be a unique way to name them.
      Since we're going to be bumping these extensions' versions anyway for
      parallel-query cleanups, let's take care of this now.
      
      Andreas Karlsson, adjusted for more search-path-safety by me
      749a787c
  4. 21 Jul, 2015 1 commit
  5. 14 Jul, 2014 1 commit
  6. 14 Feb, 2011 1 commit
    • 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
  7. 23 Nov, 2010 1 commit
  8. 20 Sep, 2010 1 commit
  9. 10 Nov, 2007 1 commit
  10. 26 Jun, 2007 1 commit
  11. 03 May, 2006 1 commit
  12. 27 Feb, 2006 1 commit
  13. 27 Sep, 2005 1 commit
  14. 20 Aug, 2004 1 commit
    • 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
  15. 29 Nov, 2003 1 commit
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  16. 11 Jun, 2003 1 commit
    • Bruce Momjian's avatar
      Changes: · 47d5c3d5
      Bruce Momjian authored
      1 intarray: bugfix for int[]-int[] operation
      2 intarray: split _int.c to several files (_int.c now is unused)
      3 ntarray (gist__intbig_ops opclass): use special type for index storage
      4 ltree (gist__ltree_ops opclass), intarray (gist__intbig_ops): optimize
      GiST's
      penalty and picksplit interface functions, now use Hemming distance.
      
      Teodor Sigaev
      47d5c3d5
  17. 06 Sep, 2001 1 commit
  18. 18 Jun, 2001 1 commit
    • 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
  19. 31 May, 2001 1 commit
  20. 18 Mar, 2001 1 commit
  21. 17 Mar, 2001 1 commit
  22. 20 Feb, 2001 1 commit
  23. 13 Jan, 2001 1 commit
  24. 12 Jan, 2001 1 commit
    • Marc G. Fournier's avatar
      · 1db943b3
      Marc G. Fournier authored
      commit Oleg and Teodor's RD-tree implementation ... this provides the
      regression tests for the GiST changes ... this should be integrated into
      the regular regression tests similar to Vadim's SPI contrib stuff ...
      1db943b3
  25. 11 Dec, 2000 2 commits