You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found, that there is an issue with performing the pg-osc command more than once, when we didn't use --drop. When I haven't used --drop and ran the command, it works fine and created a old table. Now, again I tried to run the command on the same table, but now its raising an error as table already exits as below. ERROR: relation "pgosc_op_table_employees" already exists (PG::DuplicateTable) Solution:
I guess, when renaming the old table, you may have give the name format as "pgosc_op_table_{tablename}"--> this will cause the error, To resolve this, You may change the format to "pgosc_op_table_{tablename}_{index}"
Here index/id can be a unique value.
The text was updated successfully, but these errors were encountered:
Hi @shayonj ,
I found, that there is an issue with performing the
pg-osc
command more than once, when we didn't use--drop
. When I haven't used--drop
and ran the command, it works fine and created a old table. Now, again I tried to run the command on the same table, but now its raising an error as table already exits as below.ERROR: relation "pgosc_op_table_employees" already exists (PG::DuplicateTable)
Solution:
I guess, when renaming the old table, you may have give the name format as "pgosc_op_table_{tablename}"--> this will cause the error, To resolve this, You may change the format to "pgosc_op_table_{tablename}_{index}"
Here index/id can be a unique value.
The text was updated successfully, but these errors were encountered: