Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> I tried that connecting to template1, but it doesn't helped. The problem
> occurs even if I repeat 'drop;create' in one connection (the same backend).
Hmm. Do you have autovacuum turned on? 8.2 isn't real smart about
dealing with autovac running in the template DB ...
FWIW, I could repeat it here easily with the given test case (new
connections being made each time) but not with a single persistent
connection.
regards, tom lane