-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
will pg_party support hourly partitioning in postgresql 10.4 ? #3
Comments
Hourly partitioning may be added. But give me some time for patching pg_party for automatic partitioning for PG11. |
Also any help is appreciated. |
im trying to update create partition command in pg_party script to support pg 10. EXECUTE 'CREATE TABLE ' || schema_name || '.' || quote_ident(part_name) pg 10 partition syntax : EXECUTE 'CREATE TABLE ' || schema_name || '.' || quote_ident(part_name) After modifying script, tried to execute script but fails with error at line 68.... but im not able to find problem can u try it once |
Missing
|
It is available in the script... I missed it here while typing.... I have doubt on this part but not sure ( ''' || start_time|| ''') to ( ''' || end_time|| ''')'; Can u test it once |
RAISE NOTICE 'CREATE TABLE ' || schema_name || '.' || quote_ident(part_name) ||
' partition of ' || schema_name || '. ' || master_table|| ' for values from
( ''' || start_time|| ''') to ( ''' || end_time|| ''')'; |
im getting below error.. NOTICE: Checking for partition ccmiddl.audit_2018326 |
Hi derkan, i just updated below to the script EXECUTE 'CREATE TABLE ' || schema_name || '.' || quote_ident(part_name) || im getting below error.. NOTICE: Checking for partition ccmiddl.audit_2018326 Did u find the issue behind the error..... |
- Time based partition is added in format `YYYYDDD_HH24MI` - Checking if DB version is supported. - Added auto-upgrade mechanism for `pg_party` table and `pg_party_date_partition` function. partly solves #3
I've added hourly partitioning support and PG10 support. Can you please check this new version? |
tried with new script.. im using PG 10 and i got below error.Not sure why it is trying t o create inherit type partition table in PG10. ERROR.cannot inherit from partitioned table. |
Can you share DDL of parent table? |
create table client_audit ( FYI, already 10 partitions exists for this parent table and 4 indexes on each partitioned table. |
I found the problem, it's OK now. Thanks for informing about the problem. |
Also pls check docs, PG 10 doesn't allow to create indexes on parent table. So it is impossible to copy indexes from that table to partitions. So I've added |
Script works now... I removed --no-password from the script and tested it by providing password when ever it prompts... Error I'm facing with --no-password is FYI... I'm using this script for my remote rds postgres database |
Closing issue as it is resolved. |
No description provided.
The text was updated successfully, but these errors were encountered: