Re: creating a subset DB efficiently ? - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: creating a subset DB efficiently ?
Date
Msg-id 20240309213455.i2trc3sc4caxoqel@hjp.at
Whole thread Raw
In response to creating a subset DB efficiently ?  (David Gauthier <dfgpostgres@gmail.com>)
List pgsql-general
On 2024-03-08 11:22:17 -0500, David Gauthier wrote:
> Related question...
> The "delete from par_tbl_a where project <> 'a' " is taking forever.

Have you checked whether all the FK columns have an index? Otherwise
checking for references means a full table scan which may take a long
time.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Steve Baldwin
Date:
Subject: Re: Help diagnosing replication (copy) error
Next
From: Rob Sargent
Date:
Subject: Re: Insert with Jsonb column hangs