CLUSTER specified the wrong namespace when renaming toast tables of temporary
Tom Lane <tgl@sss.pgh.pa.us>
CLUSTER specified the wrong namespace when renaming toast tables of temporary relations (they don't live in pg_toast). This caused an Assert failure in assert-enabled builds. So far as I can see, in a non-assert build it would only have messed up the checks for conflicting names, so a failure would be quite improbable but perhaps not impossible.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/cluster.c | modified | +12 −7 |
| src/test/regress/expected/cluster.out | modified | +12 −0 |
| src/test/regress/sql/cluster.sql | modified | +6 −0 |