Welcome, Guest
Username: Password: Remember me

TOPIC: Lots of 'relation "<tablename>" already exists' errors

Lots of 'relation "<tablename>" already exists' errors 1 year 11 months ago #89667

Hi,

I'm on a Linux / PostgreSQL system trying to upgrade from 1.91 to 2.00+

I keep getting errors like:
CDbCommand failed to execute the SQL statement: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "participants" already exists

So, I restored the table and started the install from scratch after dropping the offending table. Lather, rinse, repeat, several times.

After tiring of that endless loop, I manually dropped ALL of the empty tables, and am now getting error messages about tables NOT existing.

Can you list which tables I should get rid of so that it will get through the creation of tables it doesn't check for?
The administrator has disabled public write access.

Re: Lots of 'relation "<tablename>" already exists' errors 1 year 11 months ago #89679

In the words of Alex Trebek "And, the answer is":

A previous failed attempt at upgrading from 1.91+ to 1.92 created some tables in the database that should not have been there. Rewinding to 1.91+ those extra tables were never dropped.

Installing a clean 1.91+ showed these extra empty tables:
  • expression_errors
  • participant_attribute
  • participant_attribute_names
  • participant_attribute_names_lang
  • participants
  • survey_links
  • survey_url_parameters
Plus two other tables that contained survey data.

Dropping the tables above and doing the 2.00+ install one more time appears to have worked correctly.

Thanks to Carsten Schmitz for pointing me in the right direction.
Last Edit: 1 year 11 months ago by ubuntourist.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.163 seconds
Donation Image