Subject: | name collision with indexes |
Hi,
if you have a table with the same name as a index postgresql fails to
insert into that table or select from that table.
I looked at the code of Producer::PostgreSQL and found out that
create_index only checks for %used_index_names but not for names of tables.
BTW: there has been a case where next_unused_name has called with a
scalar for $used_names which results in a critical error. I have no idea
why but inserting this line fixes the problem:
$used_names = {} unless(ref $used_names eq "HASH");