Re: ALTER TABLE ... REPLACE WITH - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: ALTER TABLE ... REPLACE WITH
Date
Msg-id 4D081DAE.2010507@agliodbs.com
Whole thread Raw
In response to Re: ALTER TABLE ... REPLACE WITH  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
> I have; the above would hold the lock window open while the SELECT runs
> and that is explicitly something we are trying to avoid.

Not necessarily.  You could copy into a temp table first, and then swap.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Segfault related to pg_authid when running initdb from git master
Next
From: Robert Haas
Date:
Subject: Re: Per-column collation