jOOQ / jOOQ

jOOQ is the best way to write SQL in Java
https://www.jooq.org
Other
6.16k stars 1.21k forks source link

Add support for { CREATE | ALTER | DROP } MATERIALIZED VIEW #9483

Closed lukaseder closed 1 year ago

lukaseder commented 5 years ago

We currently cannot CREATE, ALTER, or DROP materialized views. Supporting these statements is a prerequisite for being able to export them using Meta.ddl(): https://github.com/jOOQ/jOOQ/issues/6412

Tasks

Workarounds for limitations:

Dialects with similar features, which are out of scope for now:

Dialects with buggy implementations:

Future work

dharrigan commented 4 years ago

Would it be possible to also support refresh (admittingly I think just a PostgreSQL feature)

https://www.postgresql.org/docs/11/sql-refreshmaterializedview.html

i.e.,

refresh materialized view FOO with data refresh materialized view FOO with no data

and maybe

refresh concurrently materialized view FOO ....

Presently I'm using raw SQL to do it, which is fine :-) Just if you're in that area, perhaps supporting refresh might be doable too :-)

Thank you.

lukaseder commented 4 years ago

@dharrigan Thanks for your suggestion. We could consider this, but it's unlikely this will be prioritised any time soon. There are more compelling syntaxes to support before this one...

dharrigan commented 4 years ago

No problem :-) As mentioned, having the ability to use raw sql is totally fine to accomplish this...you have a lot on your plate anyway :-) Maybe one day...

thank you.

lukaseder commented 1 year ago

I'll move REFRESH to its own issue:

Will look into this issue (without REFRESH) for jOOQ 3.19