From: | Andrew - Supernews <andrew+nonews(at)supernews(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Building a database from a flat file |
Date: | 2005-03-06 19:58:17 |
Message-ID: | slrnd2mo6p.2quv.andrew+nonews@trinity.supernews.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 2005-03-03, Markus Schaber <schabi(at)logix-tt(dot)com> wrote:
> - Create the new date in another schema, and then simply rename those
> two schemas for "switch over"
This kind of thing looks superficially attractive but it has some serious
problems if you try and do it while there is other database activity.
Specifically, cached plans for functions and prepared statements will not
be invalidated by the rename, and will still refer to the old tables, so
you may have inconsistent results.
> - Have two different set of tables (maybe two identical schemas), and
> let your application work on a set of views. Then you can change the
> views via "create or replace view" for switch over.
Same problem applies here.
--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
From | Date | Subject | |
---|---|---|---|
Next Message | Stefan Weiss | 2005-03-06 20:07:49 | Re: Links between rows in a table |
Previous Message | PFC | 2005-03-06 19:29:16 | Re: Postgres performance |