Re: Building a database from a flat file

Поиск
Список
Период
Сортировка
От Andrew - Supernews
Тема Re: Building a database from a flat file
Дата
Msg-id slrnd2mo6p.2quv.andrew+nonews@trinity.supernews.net
обсуждение исходный текст
Ответ на Building a database from a flat file  ("Casey T. Deccio" <ctdecci@sandia.gov>)
Список pgsql-sql
On 2005-03-03, Markus Schaber <schabi@logix-tt.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: PFC
Дата:
Сообщение: Re: Postgres performance
Следующее
От: Stefan Weiss
Дата:
Сообщение: Re: Links between rows in a table