Re: Best Approach for Swapping a Table with its Copy

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Marcelo Fernandes <marcefern7(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Best Approach for Swapping a Table with its Copy
Date: 2025-02-12 21:04:38
Message-ID: 2d8dda66-d20d-4be0-909a-c042556dc4be@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/12/25 12:57 PM, Marcelo Fernandes wrote:
> Hi folks,
>
> I have a scenario where I need to swap an original table with a copy of that
> table.
>

Should have added to previous post:

Why can't you just add the exclusion constraint to the original table?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2025-02-12 21:17:26 Re: psql command line editing
Previous Message Adrian Klaver 2025-02-12 21:02:44 Re: Best Approach for Swapping a Table with its Copy