pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to remove the partition from table .
3+ messages / 3 participants
[nested] [flat]
* How to remove the partition from table .
@ 2022-10-25 10:47 Rakesh Nashine <nashine.rakesh@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Rakesh Nashine @ 2022-10-25 10:47 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
We would like to remove the partition from one of the tables , although
that partition has some business data. Now business doesn't need that
partition any more .. How could we remove it? although they need the data .
--
Thanks & Regards
Rakesh
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: How to remove the partition from table .
@ 2022-10-25 11:09 Erik Wienhold <ewie@ewie.name>
parent: Rakesh Nashine <nashine.rakesh@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Erik Wienhold @ 2022-10-25 11:09 UTC (permalink / raw)
To: Rakesh Nashine <nashine.rakesh@gmail.com>; pgsql-general@lists.postgresql.org
> On 25/10/2022 12:47 CEST Rakesh Nashine <nashine.rakesh@gmail.com> wrote:
>
> We would like to remove the partition from one of the tables , although that
> partition has some business data. Now business doesn't need that partition
> any more .. How could we remove it? although they need the data .
Detach the partition:
https://www.postgresql.org/docs/15/sql-altertable.html#SQL-ALTERTABLE-DETACH-PARTITION
--
Erik
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: How to remove the partition from table .
@ 2022-10-25 13:29 Ron <ronljohnsonjr@gmail.com>
parent: Rakesh Nashine <nashine.rakesh@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Ron @ 2022-10-25 13:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/25/22 05:47, Rakesh Nashine wrote:
> We would like to remove the partition from one of the tables , although
> that partition has some business data. Now business doesn't need that
> partition any more .. How could we remove it? although they need the data .
That depends on which version of Postgresql you're using.
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-10-25 13:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 10:47 How to remove the partition from table . Rakesh Nashine <nashine.rakesh@gmail.com>
2022-10-25 11:09 ` Erik Wienhold <ewie@ewie.name>
2022-10-25 13:29 ` Ron <ronljohnsonjr@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox