Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    988cccc6
    Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION. · 988cccc6
    Tom Lane authored
    The original implementation simply did nothing when replacing an existing
    object during CREATE EXTENSION.  The folly of this was exposed by a report
    from Marc Munro: if the existing object belongs to another extension, we
    are left in an inconsistent state.  We should insist that the object does
    not belong to another extension, and then add it to the current extension
    if not already a member.
    988cccc6
    History
    Rethink behavior of CREATE OR REPLACE during CREATE EXTENSION.
    Tom Lane authored
    The original implementation simply did nothing when replacing an existing
    object during CREATE EXTENSION.  The folly of this was exposed by a report
    from Marc Munro: if the existing object belongs to another extension, we
    are left in an inconsistent state.  We should insist that the object does
    not belong to another extension, and then add it to the current extension
    if not already a member.