• Tom Lane's avatar
    Fix getTypeIOParam to support type record[]. · 65d9aedb
    Tom Lane authored
    Since record[] uses array_in, it needs to have its element type passed
    as typioparam.  In HEAD and 9.1, this fix essentially reverts commit
    9bc933b2, which was a hack that is no
    longer needed since domains don't set their typelem anymore.  Before
    that, adjust the logic so that only domains are excluded from being
    treated like arrays, rather than assuming that only base types should
    be included.  Add a regression test to demonstrate the need for this.
    Per report from Maxim Boguk.
    
    Back-patch to 8.4, where type record[] was added.
    65d9aedb
polymorphism.out 41.1 KB