Hannu Krosing <hannu@tm.ee> writes:
> This seems to be a problem that is of similar nature to our UNIQUE
> constraints not working in all cases (depending on the _physical_ order
> of tuples, which should never affect any user-visible behaviour).
No, I don't see any similarity at all. The behavior Alvaro is unhappy
with is perfectly deterministic and repeatable. He's basically saying
that DROP should be forgiving of redundant DROP operations, so long as
they are packaged into a single command. I don't really agree with
that, but it doesn't seem related to the UNIQUE issues.
> The two DROP TABLE cases are not equivalent in the sense that the first
> is _one_ command and the other is _two_ separate commands.
As long as they are wrapped into a single transaction block, there is no
difference.
regards, tom lane