Re: pg_restore and create FK without verification check

Поиск
Список
Период
Сортировка
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Quite honestly, I think they should check their foreign keys.

Generally speaking, I agree. The problem is that verification of FK
constraint(s) may take too long, depending on the size of the db and other
conditions. In my case, on test data, it takes about 1 hour to create tables
and copy the data, then about 40 min to create indexes, then 4.5 hours to
create one (1) FK constraint. In production, we'll have 10-100x more data than
we have for testing.
If we have a problem in production, the time necessary to restore the db is
simply going to kill us.

> People might be more interested in debating this topic with you if we
> hadn't discussed it at length just a couple months back.  There wasn't
> consensus then that we had to offer an escape hatch, and you've not
> offered any argument that wasn't made before.

I'm simply presenting a problem for which I currently do not see any solution
(it's very important for us to be able to restore db within a reasonable amount
of time). If there's no solution and none is planned, then we cannot use pgsql,
can we?

Thanks






__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


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

Предыдущее
От: Jonathan Gardner
Дата:
Сообщение: Materialized views proposal
Следующее
От: Neil Conway
Дата:
Сообщение: building outside source tree