Skip to content
Snippets Groups Projects
  1. Feb 14, 2011
    • 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
  2. Feb 12, 2011
  3. 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
  4. 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
  5. Feb 03, 2011
  6. Feb 02, 2011
  7. Feb 01, 2011
  8. 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
  9. Jan 26, 2011
  10. Jan 25, 2011
  11. Jan 24, 2011
  12. Jan 22, 2011
    • Tom Lane's avatar
      More pg_test_fsync fixups. · 37eb2cd4
      Tom Lane authored
      Reduce #includes to minimum actually needed; in particular include
      postgres_fe.h not postgres.h, so as to stop build failures on some
      platforms.
      
      Use get_progname() instead of hardwired program name; improve error
      checking for command line syntax; bring error messages into line with
      style guidelines; include strerror result in die() cases.
      37eb2cd4
    • Tom Lane's avatar
      Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined. · 3ae28ce8
      Tom Lane authored
      Per buildfarm.
      3ae28ce8
    • Tom Lane's avatar
      More pg_test_fsync cleanup. · cb38ab6d
      Tom Lane authored
      Un-break Windows build (I hope) by making the HAVE_FSYNC_WRITETHROUGH
      code match the backend.  Fix incorrect program help message.  static-ize
      all functions.
      cb38ab6d
    • Tom Lane's avatar
      Clean up pg_test_fsync commit. · bc616703
      Tom Lane authored
      Actually rename the program, rather than just claiming we did.  Hook it
      into the build system.  Get rid of useless dependency on libpq.  Clean up
      #include list and messy whitespace.
      bc616703
  13. Jan 21, 2011
  14. Jan 10, 2011
  15. Jan 09, 2011
    • Tom Lane's avatar
      Update contrib/hstore for new GIN extractQuery API. · ba398969
      Tom Lane authored
      In particular, make hstore @> '' succeed for all hstores, likewise
      hstore ?& '{}'.  Previously the results were inconsistent and could
      depend on whether you were using a GiST index, GIN index, or seqscan.
      ba398969
    • Tom Lane's avatar
      Improve comment. · 327b2576
      Tom Lane authored
      327b2576
    • Tom Lane's avatar
      Use array_contains_nulls instead of ARR_HASNULL on user-supplied arrays. · 30484507
      Tom Lane authored
      This applies the fix for bug #5784 to remaining places where we wish
      to reject nulls in user-supplied arrays.  In all these places, there's
      no reason not to allow a null bitmap to be present, so long as none of
      the current elements are actually null.
      
      I did not change some other places where we are looking at system catalog
      entries or aggregate transition values, as the presence of a null bitmap
      in such an array would be suspicious.
      30484507
    • Tom Lane's avatar
      Fix assorted corner-case bugs in contrib/intarray. · fdf2dbda
      Tom Lane authored
      The array containment operators now behave per mathematical expectation
      for empty arrays (ie, an empty array is contained in anything).
      Both these operators and the query_int operators now work as expected in
      GiST and GIN index searches, rather than having corner cases where the
      index searches gave different answers.
      
      Also, fix unexpected failures where the operators would claim that an array
      contained nulls, when in fact there was no longer any null present (similar
      to bug #5784).  The restriction to not have nulls is still there, as
      removing it would take a lot of added code complexity and probably slow
      things down significantly.
      
      Also, remove the arbitrary restriction to 1-D arrays; unlike the other
      restriction, this was buying us nothing performance-wise.
      
      Assorted cosmetic improvements and marginal performance improvements, too.
      fdf2dbda
  16. Jan 08, 2011
Loading