Skip to content
Snippets Groups Projects
  1. Feb 18, 2011
    • Tom Lane's avatar
      One more hack to make contrib upgrades from 9.0 match fresh 9.1 installs. · 472f608e
      Tom Lane authored
      intarray and tsearch2 both reference core support functions in their GIN
      opclasses, and the signatures of those functions changed for 9.1.  We added
      backwards-compatible pg_proc entries for the functions in order to allow
      9.0 dump files to be restored at all, but that hack leaves the opclasses
      pointing at pg_proc entries different from what they'd point to if the
      contrib modules were installed fresh in 9.1.  To forestall any possibility
      of future problems, fix the opclasses to match fresh installs via the
      expedient of direct UPDATEs on pg_amproc in the update-from-unpackaged
      scripts.  (Yech ... but the alternatives are worse, or require far more
      effort than seems justified right now.)
      
      Note: updating pg_amproc is sufficient because there will be no pg_depend
      entries corresponding to these dependencies, since the referenced functions
      are all pinned.
      472f608e
    • Tom Lane's avatar
      Fix upgrade of contrib/xml2 from 9.0. · de623f33
      Tom Lane authored
      Update script was being sloppy about two functions that have been changed
      since 9.0.
      de623f33
  2. Feb 17, 2011
    • Tom Lane's avatar
      Fix upgrade of contrib/intarray and contrib/unaccent from 9.0. · 0024e348
      Tom Lane authored
      Take care of a couple of discrepancies between what you get from a fresh
      install and what the first-draft update-from-unpackaged scripts produced.
      0024e348
    • Tom Lane's avatar
      Fix upgrade of contrib/btree_gist from 9.0. · ec65a79d
      Tom Lane authored
      The initial version of the update-from-unpackaged script neglected to
      include the <> operators that were added to the opclasses during 9.1.
      To make this script produce the same final state as the regular install
      script, use the same ALTER OPERATOR FAMILY trick as in pg_trgm.
      ec65a79d
    • Tom Lane's avatar
      Fix contrib/pg_trgm to have smoother updates from 9.0. · 4eb49db7
      Tom Lane authored
      Take care of some loose ends in the update-from-unpackaged script, and
      apply some ugly hacks to ensure that it produces the same catalog state
      as the fresh-install script.  Per discussion, this seems like a safer
      plan than having two different catalog states that both call themselves
      "pg_trgm 1.0", even if it's not immediately clear that the subtle
      differences would ever matter.
      
      Also, fix the stub function gin_extract_trgm() so that it works instead
      of just bleating.  Needed because this function will get called during a
      regular dump and reload, if there are any indexes using its opclass.
      The user won't have an opportunity to update the extension till later,
      so telling him to do so is unhelpful.
      4eb49db7
    • Robert Haas's avatar
      Remove rule to build sepgsql-regtest.pp. · 24bc6b3d
      Robert Haas authored
      Instead, document how to build it manually.
      
      Per discussion.  KaiGai Kohei, with some wordsmithing by me.
      24bc6b3d
  3. Feb 16, 2011
  4. Feb 15, 2011
  5. Feb 14, 2011
    • Tom Lane's avatar
      de06cfe8
    • Tom Lane's avatar
      Assorted fixups for "unpackaged" conversion scripts. · 3b61e57f
      Tom Lane authored
      From first pass of testing.  Notably, there seems to be no need for
      adminpack--unpackaged--1.0.sql because none of the objects that the
      old module creates would ever be dumped by pg_dump anyway (they are
      all in pg_catalog).
      3b61e57f
    • 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
  6. Feb 12, 2011
  7. Feb 10, 2011
    • Tom Lane's avatar
      Fix pg_upgrade to handle extensions. · caddcb8f
      Tom Lane authored
      This follows my proposal of yesterday, namely that we try to recreate the
      previous state of the extension exactly, instead of allowing CREATE
      EXTENSION to run a SQL script that might create some entirely-incompatible
      on-disk state.  In --binary-upgrade mode, pg_dump won't issue CREATE
      EXTENSION at all, but instead uses a kluge function provided by
      pg_upgrade_support to recreate the pg_extension row (and extension-level
      pg_depend entries) without creating any member objects.  The member objects
      are then restored in the same way as if they weren't members, in particular
      using pg_upgrade's normal hacks to preserve OIDs that need to be preserved.
      Then, for each member object, ALTER EXTENSION ADD is issued to recreate the
      pg_depend entry that marks it as an extension member.
      
      In passing, fix breakage in pg_upgrade's enum-type support: somebody didn't
      fix it when the noise word VALUE got added to ALTER TYPE ADD.  Also,
      rationalize parsetree representation of COMMENT ON DOMAIN and fix
      get_object_address() to allow OBJECT_DOMAIN.
      caddcb8f
  8. Feb 08, 2011
    • Peter Eisentraut's avatar
      Per-column collation support · 414c5a2e
      Peter Eisentraut authored
      This adds collation support for columns and domains, a COLLATE clause
      to override it per expression, and B-tree index support.
      
      Peter Eisentraut
      reviewed by Pavel Stehule, Itagaki Takahiro, Robert Haas, Noah Misch
      414c5a2e
  9. Feb 03, 2011
  10. Feb 02, 2011
  11. Feb 01, 2011
  12. Jan 27, 2011
    • Tom Lane's avatar
      Prevent buffer overrun while parsing an integer in a "query_int" value. · 7ccb6dc2
      Tom Lane authored
      contrib/intarray's gettoken() uses a fixed-size buffer to collect an
      integer's digits, and did not guard against overrunning the buffer.
      This is at least a backend crash risk, and in principle might allow
      arbitrary code execution.  The code didn't check for overflow of the
      integer value either, which while not presenting a crash risk was still
      bad.
      
      Thanks to Apple Inc's security team for reporting this issue and supplying
      the fix.
      
      Security: CVE-2010-4015
      7ccb6dc2
  13. Jan 26, 2011
  14. Jan 25, 2011
  15. Jan 24, 2011
Loading