public inbox for [email protected]
help / color / mirror / Atom feedFrom: veem v <[email protected]>
To: pgsql-general <[email protected]>
Subject: Issue during partition drop
Date: Thu, 30 Apr 2026 08:07:21 +0530
Message-ID: <CAB+=1TVS7o=uBorTNjXHzhLO3pJQOwZOYDWoGMJFqLTc9S8ZRw@mail.gmail.com> (raw)
Hi,
We have the Aurora Postgres database. And for a table with PK-FK
relationships, we have been running into issues while dropping partitions
using partman. We have planned to detach and drop the partitions but end up
with the below error , so wanted to understand, if this is expected
behaviour and how to handle it?
ERROR: cannot drop table <table_name>_p20250202 because other objects
depend on it
CONTEXT: SQL statement "DROP TABLE <table_name>_p20250202"
PL/pgSQL function
drop_partition_time(text,interval,boolean,boolean,text,timestamp with time
zone) line 250 at EXECUTE
PL/pgSQL function partman.run_maintenance(text,boolean,boolean) line 336 at
assignment
DETAIL: constraint <constraint_name>_fkey on table <table_name> depends on
table <table_name>_p20250202
Regards
Veem
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Issue during partition drop
In-Reply-To: <CAB+=1TVS7o=uBorTNjXHzhLO3pJQOwZOYDWoGMJFqLTc9S8ZRw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox