pgsql-bugs@postgresql.org writes:
> ERROR: RelationClearRelation: relation using JDBC
What PG version are you running?
If it's reasonably current (7.1.*) I would like to see a postmaster log
trace of the queries being issued by your application. (Turn on
debug_print_query in postgresql.conf to make this happen) The code
fragment you provided is not very helpful for understanding what the
backend is seeing.
regards, tom lane