]> granicus.if.org Git - postgresql/commit
typeTypeName() must return a pstrdup'd copy of the type name, not a
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Jun 2000 16:50:37 +0000 (16:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Jun 2000 16:50:37 +0000 (16:50 +0000)
commit05cd91a5825f89a624fc6335b6c337c8e6d77583
tree676436565b522735f329e71e32304ade6fc3ad69
parent4032a515d26eb2772c0f929db1dd8c38fcab3f92
typeTypeName() must return a pstrdup'd copy of the type name, not a
direct pointer into the syscache entry for the type.  In some cases
the syscache entry might get flushed before we are done using the
returned type name.  This bug accounts for difficult-to-repeat
failures seen when INSERTs into columns of certain data types are
run in parallel with VACUUMs of system tables.  There may be related
problems elsewhere --- we need to take a harder look at uses of
syscache data.
src/backend/parser/parse_type.c