Closed sgrinko closed 1 year ago
Commit b711cc6 adds a new export type: SEQUENCE_VALUES to generate DDL to set sequences start values. Example of use:
ora2pg -c config/ora2pg.conf -t SEQUENCE_VALUES -b tmp -e "departments_.*"
Thanks a lot! I'll try, I will write about the results ...
Everything worked perfectly, as I need!
Thanks a lot!
SET client_encoding TO 'UTF8';
SET search_path = bbb,oracle,public;
\set ON_ERROR_STOP ON
SET check_function_bodies = false;
SET search_path = bbb,oracle,public;
ALTER SEQUENCE ident_standard_frgn_seq START WITH 6;
ALTER SEQUENCE seq_company_search_frgn_id START WITH 28761;
ALTER SEQUENCE seq_company_search_id START WITH 94840515;
Hello,
I use the Ora2pg version from Head
I need to carry out the transfer of Sequence values with a separate operation from Oracle to PostgreSQL
I am writing about such a team as:
I see that copying of these tables is accompanied at the end of the work by transferring Sequence. I have no Sequence on the side of PostgreSQL (it should be, I do not need them in PostgreSQL and I deleted them myself) and I see such messages:
Although I have a filter installed:
These Sequence are still used. This is not a problem, since it is
Notice
and does not interrupt the process. Although it is not clear to me why the filter does not work.Now I ask you to tell me how I can download the values of Sequence in my postgresql database with a separate operation?
Thanks for your work!