dbTalk Databases Forums  

Transactions in different DB

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Transactions in different DB in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stefano Farina
 
Posts: n/a

Default Transactions in different DB - 11-16-2004 , 04:22 AM






Hi all
I have to develop an embedded database using memory FLASH and memory RAM
Some tables must be saved in RAM and some tables in FLASH ( RAM and FLASH are two different mounted directories in the file system).
I saw it's possible to save different databases in different directories with CREATE DATABASE options.

It's possible to save only some tables in different directories??

If I want to work with two different databases, it's possible to do a single transaction on two different databases ??

Thanks

Stefano Farina

Reply With Quote
  #2  
Old   
Ian Barwick
 
Posts: n/a

Default Re: Transactions in different DB - 11-17-2004 , 04:48 AM






On Tue, 16 Nov 2004 11:22:27 +0100, Stefano Farina
<sfarina.stagedse (AT) akhela (DOT) com> wrote:
Quote:
Hi all
I have to develop an embedded database using memory FLASH and memory RAM
Some tables must be saved in RAM and some tables in FLASH ( RAM and FLASH
are two different mounted directories in the file system).
I saw it's possible to save different databases in different directories
with CREATE DATABASE options.

It's possible to save only some tables in different directories??
Beginning with PostgreSQL 8.0, yes - this provides tablespaces.

Quote:
If I want to work with two different databases, it's possible to do a
single transaction on two different databases ??
Not AFAIK, though contrib/dblink might be able to help you.

HTH

Ian Barwick
barwick (AT) gmail (DOT) com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
  #3  
Old   
Tino Wildenhain
 
Posts: n/a

Default Re: Transactions in different DB - 11-17-2004 , 07:16 AM



Hi,

Am Dienstag, den 16.11.2004, 11:22 +0100 schrieb Stefano Farina:
Quote:
Hi all
I have to develop an embedded database using memory FLASH and memory
RAM
Some tables must be saved in RAM and some tables in FLASH ( RAM and
FLASH are two different mounted directories in the file system).
I saw it's possible to save different databases in different
directories with CREATE DATABASE options.

It's possible to save only some tables in different directories??
With 8.0 its possible. With pre 8.0 it would involve manual work
(linking) and you are restricted when you recreate tables and indices.

Quote:
If I want to work with two different databases, it's possible to do a
single transaction on two different databases ??
No. You might be able to simulate it with dblink, but generally no.

Regards
Tino


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.