• Tom Lane's avatar
    Handle domains when checking for recursive inclusion of composite types. · aff97b1f
    Tom Lane authored
    We need this now because we allow domains over arrays, and we'll probably
    allow domains over composites pretty soon, which makes the problem even
    more obvious.
    
    Although domains over arrays also exist in previous versions, this does not
    need to be back-patched, because the coding used in older versions
    successfully "looked through" domains over arrays.  The problem is exposed
    by not treating a domain as having a typelem.
    
    Problem identified by Noah Misch, though I did not use his patch, since
    it would require additional work to handle domains over composites that
    way.  This approach is more future-proof.
    aff97b1f
heap.c 82.2 KB