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

[BUG] Don`t cascade drop tables. #44

Open
XBsleepy opened this issue Jan 17, 2025 · 0 comments
Open

[BUG] Don`t cascade drop tables. #44

XBsleepy opened this issue Jan 17, 2025 · 0 comments

Comments

@XBsleepy
Copy link

I am trying this interesting repo:
I create a partition table ,and use measurement.

CREATE TABLE measurement(
city_id int not null,
logdate date not null,
peaktemp int,
unitsales int
)partition by range(logdate);
select enable_ts_table('measurement');

Then I try to drop it (both cascade and no cascade have been tested):

DROP TABLE measurement CASCADE;

Then I create the same partition table, try to use ts_table, it doesn't work:

NOTICE:  relation "template_public_measurement" already exists, skipping
ERROR:  duplicate key value violates unique constraint "part_config_parent_table_pkey"

We have to delete it manually.

DELETE FROM part_config where part_config.parent_table ='public.measurement';
@XBsleepy XBsleepy changed the title [bug] Don`t cascade drop tables. [BUG] Don`t cascade drop tables. Jan 17, 2025
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

1 participant