Skip to content
Snippets Groups Projects
  1. Feb 12, 2011
    • Robert Haas's avatar
      Teach ALTER TABLE .. SET DATA TYPE to avoid some table rewrites. · d31e2a49
      Robert Haas authored
      When the old type is binary coercible to the new type and the using
      clause does not change the column contents, we can avoid a full table
      rewrite, though any indexes on the affected columns will still need
      to be rebuilt.  This applies, for example, when changing a varchar
      column to be of type text.
      
      The prior coding assumed that the set of operations that force a
      rewrite is identical to the set of operations that must be propagated
      to tables making use of the affected table's rowtype.  This is
      no longer true: even though the tuples in those tables wouldn't
      need to be modified, the data type change invalidate indexes built
      using those composite type columns.  Indexes on the table we're
      actually modifying can be invalidated too, of course, but the
      existing machinery is sufficient to handle that case.
      
      Along the way, add some debugging messages that make it possible
      to understand what operations ALTER TABLE is actually performing
      in these cases.
      
      Noah Misch and Robert Haas
      d31e2a49
    • Tom Lane's avatar
      Clean up installation directory choices for extensions. · 24d1280c
      Tom Lane authored
      Arrange for the control files to be in $SHAREDIR/extension not
      $SHAREDIR/contrib, since we're generally trying to deprecate the term
      "contrib" and this is a once-in-many-moons opportunity to get rid of it in
      install paths.  Fix PGXS to install the $EXTENSION file into that directory
      no matter what MODULEDIR is set to; a nondefault MODULEDIR should only
      affect the script and secondary extension files.  Fix the control file
      directory parameter to be interpreted relative to $SHAREDIR, to avoid a
      surprising disconnect between how you specify that and what you set
      MODULEDIR to.
      
      Per discussion with David Wheeler.
      24d1280c
    • Tom Lane's avatar
      Add support for multiple versions of an extension and ALTER EXTENSION UPDATE. · 12147499
      Tom Lane authored
      This follows recent discussions, so it's quite a bit different from
      Dimitri's original.  There will probably be more changes once we get a bit
      of experience with it, but let's get it in and start playing with it.
      
      This is still just core code.  I'll start converting contrib modules
      shortly.
      
      Dimitri Fontaine and Tom Lane
      12147499
  2. Feb 11, 2011
  3. Feb 10, 2011
  4. Feb 09, 2011
    • Peter Eisentraut's avatar
      Information schema views for collation support · 2e2d56fe
      Peter Eisentraut authored
      Add the views character_sets, collations, and
      collation_character_set_applicability.
      2e2d56fe
    • Tom Lane's avatar
      Rethink order of operations for dumping extension member objects. · 183d3cff
      Tom Lane authored
      My original idea of doing extension member identification during
      getDependencies() didn't work correctly: we have to mark member tables as
      not-to-be-dumped rather earlier than that, else their subsidiary objects
      like indexes get dumped anyway.  Rearrange code to mark them early enough.
      183d3cff
    • Tom Lane's avatar
      Implement "ALTER EXTENSION ADD object". · 5bc178b8
      Tom Lane authored
      This is an essential component of making the extension feature usable;
      first because it's needed in the process of converting an existing
      installation containing "loose" objects of an old contrib module into
      the extension-based world, and second because we'll have to use it
      in pg_dump --binary-upgrade, as per recent discussion.
      
      Loosely based on part of Dimitri Fontaine's ALTER EXTENSION UPGRADE
      patch.
      5bc178b8
    • Bruce Momjian's avatar
      Remove more SGML tabs. · 70802e0d
      Bruce Momjian authored
      70802e0d
    • Bruce Momjian's avatar
      Remove tabs in SGML file. · ee4b67fc
      Bruce Momjian authored
      ee4b67fc
    • Heikki Linnakangas's avatar
      Fix allocation of RW-conflict pool in the new predicate lock manager, and · 036bb158
      Heikki Linnakangas authored
      also take the RW-conflict pool into account in the PredicateLockShmemSize()
      estimate.
      036bb158
    • Magnus Hagander's avatar
      Implement NOWAIT option for BASE_BACKUP command · 3144c33a
      Magnus Hagander authored
      Specifying this option makes the server not wait for the
      xlog to be archived, or emit a warning that it can't,
      instead leaving the responsibility with the client.
      
      This is useful when the log is being streamed using
      the streaming protocol in parallel with the backup,
      without having log archiving enabled.
      3144c33a
    • Tom Lane's avatar
      Suppress some compiler warnings in recent commits. · 375e5b0a
      Tom Lane authored
      Older versions of gcc tend to throw "variable might be clobbered by
      `longjmp' or `vfork'" warnings whenever a variable is assigned in more than
      one place and then used after the end of a PG_TRY block.  That's reasonably
      easy to work around in execute_extension_script, and the overhead of
      unconditionally saving/restoring the GUC variables seems unlikely to be a
      serious concern.
      
      Also clean up logic in ATExecValidateConstraint to make it easier to read
      and less likely to provoke "variable might be used uninitialized in this
      function" warnings.
      375e5b0a
  5. Feb 08, 2011
Loading