Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue exporting Materialized view using script #1849

Open
srinilakshmi opened this issue Dec 13, 2024 · 5 comments
Open

Issue exporting Materialized view using script #1849

srinilakshmi opened this issue Dec 13, 2024 · 5 comments

Comments

@srinilakshmi
Copy link

Hi Darold,

I am working on migrating SQL Server scripts to PostgreSQL using windows version of Ora2PG with scripts migration (offline due to restrictions in our company).

I am having issue with exporting Materialized views, getting an error. please find the attached screenshot
WhatsApp Image 2024-12-13 at 11 57 59_8575f9c3

and when get chance can you look at the other issue we had conversation #1828

Any help for the above is really helpful and I am desperately need help with these.

TIA

@wisdomonezxy
Copy link

only a test

@srinilakshmi
Copy link
Author

Not following.

@darold darold closed this as completed Dec 24, 2024
@srinilakshmi
Copy link
Author

@darold and @wisdomonezxy
Can someone explain what it means by test? Is that functionality only available in testing?

@darold
Copy link
Owner

darold commented Jan 8, 2025

@srinilakshmi, you write "not following" so I have understood that this issues was discarded.

I have done some work recently to better support migration of input DDL script for SQL Server but there's less possible translation than for Oracle. Anyway materialized view are not supported yet. If you can post DDL samples I can try to implements it.

@darold darold reopened this Jan 8, 2025
@srinilakshmi
Copy link
Author

@darold sorry for the confusion.

Here is the sample Materailized view for Oracle db in DDL script. Please let me know.

CREATE MATERIALIZED VIEW "MD_SAMPLE_VIEW" ("PROJECT_ID", "CONNECTION_ID", "CONNECTION_NAME")
SEGMENT CREATION DEFERRED
ORGANIZATION HEAP PCFTREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING NO INMEMORY
BUILD IMMEDIATE
USING INDEX
REFRESH FORCE ON DEMAND
USING DEFAULT LOCAL ROLLBACK SEGMENT
USING ENFORCED CONMSTRAINTS DISABLE ON QUERY COPUTATION DISABLE QUERY REWRITE
AS SELECT PROJECT_ID, CONNECTION_ID, CONNECTION_NAME
from MD_REGEX_SCHEMA_MVIEW
group by PROJECT_ID, CONNECTION_ID, CONNECTION_NAME;

COMMENT ON MATERIALIZED VIEW "MD_SAMPLE_VIEW" IS 'sample materialized view';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants