Code Monkey home page Code Monkey logo

Comments (7)

darold avatar darold commented on June 27, 2024

That's a bug, disabling PG_SUPPORTS_MVIEW in ora2pg 12.0 should have the same behavior as previous version. This was not the case. Commit 5d138aa should solve the issue.

from ora2pg.

bjornbak avatar bjornbak commented on June 27, 2024

Hmm I doesn't seem to change anything...

Having

PG_SUPPORTS_MVIEW 0

in ora2pg.conf and extracting ddl with

../ora2pg-current/blib/script/ora2pg -c ../ora2pg.conf -t "TABLE SEQUENCE"

the output doesn't contain ddl for the mv tables.

from ora2pg.

darold avatar darold commented on June 27, 2024

Please use:

../ora2pg-current/blib/script/ora2pg -p -c ../ora2pg.conf -t MVIEW

and look at your output file.

from ora2pg.

bjornbak avatar bjornbak commented on June 27, 2024

That gives me the the *_mview views for population and the controlling stored procedures but not the ddl for the tables storing the materialized view data...

In 11.4 this table was part of -t TABLE

from ora2pg.

darold avatar darold commented on June 27, 2024

I don't understand. You don't need to create any table, this is done by the create_materialized_view() function.

Once you have imported that code, you have to call create_materialized_view() using the example given at end of the output file. For example, I have:

SELECT create_materialized_view('mv','mv_mview', change with the name of the colum to used for the index);

arguments depends of the name of the view, you also have to change the third to set the column that should be used to construct the index.

i will try to add more explanation in the code.

from ora2pg.

bjornbak avatar bjornbak commented on June 27, 2024

OK. Then I'm missing a bug that were in 11.4.. With 11.4 I got the virtual table containing the materialized data exported as a table as well..

I liked that solution because it meant that I don't have to wait for the materialized view to be created on the postgresql side before it is usable.

It takes 6 hours for me to create the materialized views as pg9.3 mv's.

I looking at ways minimize the downtime during migration but am considering taking the cost during migration so I can use the new pg9.3 mv's..

from ora2pg.

bjornbak avatar bjornbak commented on June 27, 2024

I'll use the pg9.3 mv's instead.

from ora2pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.