Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    b0025bd9
    Invent a new memory context primitive, MemoryContextSetParent. · b0025bd9
    Tom Lane authored
    This function will be useful for altering the lifespan of a context after
    creation (for example, by creating it under a transient context and later
    reparenting it to belong to a long-lived context).  It costs almost no new
    code, since we can refactor what was there.  Per my proposal of yesterday.
    b0025bd9
    History
    Invent a new memory context primitive, MemoryContextSetParent.
    Tom Lane authored
    This function will be useful for altering the lifespan of a context after
    creation (for example, by creating it under a transient context and later
    reparenting it to belong to a long-lived context).  It costs almost no new
    code, since we can refactor what was there.  Per my proposal of yesterday.
memutils.h 4.86 KiB