Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

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

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


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.

Lots of 'relation "<tablename>" already exists' errors 3 years 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: 3 years 11 months ago by ubuntourist.
The administrator has disabled public write access.
Time to create page: 0.345 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form