diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-10-18 17:10:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-10-18 17:10:56 -0400 |
commit | b246207bd7b553317fd90d7aefd9520eed27609a (patch) | |
tree | 43c92b5814098b169f39d8394c98356532528af2 /src/backend/access/transam/xlog.c | |
parent | d1e25b78f9988b9917de2818febcbf6c845c6ceb (diff) | |
download | postgresql-b246207bd7b553317fd90d7aefd9520eed27609a.tar.gz postgresql-b246207bd7b553317fd90d7aefd9520eed27609a.zip |
Fix pg_dump to dump casts between auto-generated types.
The heuristic for when to dump a cast failed for a cast between table
rowtypes, as reported by Frédéric Rejol. Fix it by setting
the "dump" flag for such a type the same way as the flag is set for the
underlying table or base type. This won't result in the auto-generated
type appearing in the output, since setting its objType to DO_DUMMY_TYPE
unconditionally suppresses that. But it will result in dumpCast doing what
was intended.
Back-patch to 8.3. The 8.2 code is rather different in this area, and it
doesn't seem worth any risk to fix a corner case that nobody has stumbled
on before.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions