-
Notifications
You must be signed in to change notification settings - Fork 297
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
Extend intelmq_psql_initdb #2404
Conversation
Those changes improves the capabilities of the database schema creation. It's now easier to switch to the TimescaleDB or use partitioning in PostgreSQL. Creating scripts can be generated from the harmonisation, as previously just the most basic version. If requested, creation commands get IF NOT EXISTS or OR REPLACE directives to allow re-runing script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see that my design is still useful :)
Is the file contrib/eventdb/separate-raws-table.sql
obsoleted?
https://intelmq.readthedocs.io/en/develop/user/eventdb.html#separating-raw-values-in-postgresql-using-view-and-trigger needs an update for the new method.
Co-authored-by: Sebastian <[email protected]>
Thanks for catching lack of docs, let's see now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only wording suggestions. LGTM
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Sebastian <[email protected]>
@sebix Would you find time to merge this PR? |
Added creating view for separating raws, optional partitioning key,
custom harmonization file path and
if not exists
/or replace
clauses.Those changes improves the capabilities of the database
schema creation. It's now easier to switch to the TimescaleDB
or use partitioning in PostgreSQL. Creating scripts can be
generated from the harmonisation, as previously just the most
basic version. If requested, creation commands get IF NOT EXISTS
or OR REPLACE directives to allow re-runing script.