Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0MN5Xl26122 for ; Tue, 22 Jan 2002 18:05:33 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.2) with HTTP id 673532; Tue, 22 Jan 2002 15:05:33 -0800 From: "Josh Berkus" Subject: Re: sharing data accross several databases To: "bob lapique", "pgsql-sql" X-Mailer: CommuniGate Pro Web Mailer v.3.5.2 Date: Tue, 22 Jan 2002 15:05:33 -0800 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200201/257 X-Sequence-Number: 6341 Bob, > I am designing 2 databases : > - the 1st relates to flasks > - the 2nd relates to cylinders > > Both flasks and cylinders will be shipped accross the > world and I need to keep track of check out dates, > shipping method, destination, etc. These data will be of > the same type for both databases. So, why are you designing two seperate databases? It seems to me that  you only need one database, with relevant tables carrying a "Type"  column of "Flask" or "Cylinder". Seperate databases will give you all  kinds of headaches you don't need. > Questions : > ----------- > 1) Is a 3rd database the solution ? No. One, single, database is the solution. > 2) I would like to keep on using foreign keys (e.g. > between a shipped item and the destination location) PostgreSQL does not permit access of multiple databases from SQL (this  was a design decision, based on the project's interpretation of the  SQL92 standard). If you pursue you current approach, you will be  forced to use middleware (such as JSP or J2EE or Perl::DBI) to access  both of your databases at once ... considerable trouble for no  benefit. -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco