Re: Complex database infrastructure - how to?

From: Misa Simic <misa(dot)simic(at)gmail(dot)com>
To: Edson Richter <edsonrichter(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Complex database infrastructure - how to?
Date: 2012-07-01 01:02:08
Message-ID: CAH3i69k47HWA0NOTgZDz1HndjpKRha03fuRbQcyOLe6rqwFO_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Edson,

Maybe the best option is what Jack has already suggested, to have all in 1
DB in separate schemas (if tables are not already organised in separated
schemas...)... But I am not sure I understand well problems:

2012/6/30 Edson Richter <edsonrichter(at)hotmail(dot)com>

> 1) Copy tables from Administrative to Application: this approach would
> work, but I have trouble with the foreign keys. I'll have to disable (or
> drop) them, then copy data, then activate (or recreate them again). Could
> lead to problems?
> 2) dblink: I can't use foreign key to foreign tables. Also, it is very
> hard to implement with JPA.

1) I guess data just need to be coppied in proper order... though,
Postgres have deffered constraint feature, what means, FK will not break
transaction until end (all trans commited) - untill all data copied...

2) I just wonder On what way it is possible in MS SQL Server or any other
db engine? (to have FK to foreign table... )

Thanks,

Misa

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2012-07-01 01:13:45 ARD update warning (Mac stuff)
Previous Message Misa Simic 2012-07-01 00:17:39 Re: how to return results from code block