Re: [GENERAL] Shared Sequences?
On Sun, 2005-01-02 at 16:19 -0500, C. Duncan Hudson wrote: [about databases sharing a sequence] > I have 3 instances of the application > (each for a different business unit) and I don't want them generating > the same numbers for different things. I want the numbers, across all > business units, to be truly chronological - so I'd like them to share > the same sequence. do you realize that sequences are not garanteed to be "chronological"? gnari ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster
Re: [GENERAL] Shared Sequences?
Michael Fuhr wrote: On Sun, Jan 02, 2005 at 10:44:16AM -0500, C. Duncan Hudson wrote: Is there any way, with PG 8 rc 3, to share a sequence across databases - assuming all databases are on the same machine? As Andreas Kretschmer mentioned, you might be able to use dblink. Why do you want to share a sequence across databases? Could you use separate schemas in one database instead of separate databases? Unfortunately, the app that I'm using doesn't yet support schemas - otherwise I'd be doing that. I have 3 instances of the application (each for a different business unit) and I don't want them generating the same numbers for different things. I want the numbers, across all business units, to be truly chronological - so I'd like them to share the same sequence. Dunc ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org
Re: [GENERAL] Shared Sequences?
On Sun, Jan 02, 2005 at 10:44:16AM -0500, C. Duncan Hudson wrote: > Is there any way, with PG 8 rc 3, to share a sequence across databases - > assuming all databases are on the same machine? As Andreas Kretschmer mentioned, you might be able to use dblink. Why do you want to share a sequence across databases? Could you use separate schemas in one database instead of separate databases? -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
Re: [GENERAL] Shared Sequences?
begin "C. Duncan Hudson" <[EMAIL PROTECTED]> wrote: > Is there any way, with PG 8 rc 3, to share a sequence across databases - > assuming all databases are on the same machine? Thanks, Possibly via contrib/dblink, also on ealier versions. I'm not sure about sequences, but with tables this is possible. end Andreas -- Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau- fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-) ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
[GENERAL] Shared Sequences?
Is there any way, with PG 8 rc 3, to share a sequence across databases - assuming all databases are on the same machine? Thanks, Dunc ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster