@@ -100,3 +100,82 @@ Ravensfield Digital Resource Group, Ltd.
100100(740) 587-0114
101101www.ravensfield.com
102102
103+ From reedstrm@rice.edu Wed May 23 10:59:42 2001
104+ Return-path: <reedstrm@rice.edu>
105+ Received: from ece.rice.edu (ece.rice.edu [128.42.4.34])
106+ by candle.pha.pa.us (8.10.1/8.10.1) with ESMTP id f4NExgQ05774
107+ for <pgman@candle.pha.pa.us>; Wed, 23 May 2001 10:59:42 -0400 (EDT)
108+ Received: from wallace.ece.rice.edu (wallace.ece.rice.edu [128.42.12.154])
109+ by ece.rice.edu (Postfix) with ESMTP id A419F68A0E
110+ for <pgman@candle.pha.pa.us>; Wed, 23 May 2001 09:59:36 -0500 (CDT)
111+ Received: from reedstrm by wallace.ece.rice.edu with local (Exim 3.22 #1 (Debian))
112+ id 152a41-0006E5-00
113+ for <pgman@candle.pha.pa.us>; Wed, 23 May 2001 09:56:41 -0500
114+ Date: Wed, 23 May 2001 09:56:41 -0500
115+ From: "Ross J. Reedstrom" <reedstrm@rice.edu>
116+ To: Bruce Momjian <pgman@candle.pha.pa.us>
117+ Subject: Re: [HACKERS] Re: [GENERAL] Re: [GENERAL] Queries across multiple databases ?(was: SELECT from a table in another database).
118+ Message-ID: <20010523095641.D23741@rice.edu>
119+ References: <004c01c0e214$ce6c4800$1001a8c0@archonet.com> <200105221131.f4MBVIc28574@candle.pha.pa.us>
120+ MIME-Version: 1.0
121+ Content-Type: text/plain; charset=us-ascii
122+ Content-Disposition: inline
123+ User-Agent: Mutt/1.3.17i
124+ In-Reply-To: <200105221131.f4MBVIc28574@candle.pha.pa.us>; from pgman@candle.pha.pa.us on Tue, May 22, 2001 at 07:31:18AM -0400
125+ Status: ORr
126+
127+ Bruce -
128+ Around the first of the year, I started playing around with a schema
129+ implementation. As you may recall, my first crack at changing file storage
130+ names about a year ago was motivated by the need to avoid collisions
131+ once schema were available.
132+
133+ Anyway, now that Vadim has removed a lot of the internal dependence
134+ on relname for keeping track of relations, using the new relfinenode
135+ many places relname used to be used, it seems to me that adding a
136+ parallel schemaname to all the data structures that use relname isn't
137+ as cumbersome as Peter might think. I hadn't tackled the relcache yet:
138+ perhaps concatenating the schemaname and relname to use as the hash key
139+ is the way to go for that.
140+
141+ Unfortunately, all that code is now 4 months old, and on my machine
142+ at home. I has started with the rangetable entries, because hacked the
143+ parser to allow 'SELECT * FROM schemaname.tablename' was easier than
144+ 'select schemaname.tablename.fieldname FROM', since the dot function
145+ calling convention isn't allowed in the range list, while it is in the
146+ target list.
147+
148+ I seem to recall tripping up on the query plan printer, of all things,
149+ before other, paying work pushed it aside. I'll see if I can update that
150+ code to the current tree, and send you something, if you'd like.
151+
152+ Ross
153+
154+
155+
156+ On Tue, May 22, 2001 at 07:31:18AM -0400, Bruce Momjian wrote:
157+ > > > I'm not sure whether it is quite the way to do it, but I'd have a better
158+ > > > time with things if I could span databases in a single request. Are
159+ > > > there theoretical problems with spanning databases in a single query? Is
160+ > > > it a feature of bad database design & implementation?
161+ > >
162+ > > I think the developers are planning full schema support for the relatively
163+ > > near future (possibly even 7.2, but check the archives and see what's been
164+ > > said). Although it looks easy to access a table from another database,
165+ > > things can rapidly become more complicated as you start having to deal with
166+ > > transactions, triggers, rules, constraints...
167+ >
168+ > Schema is on my radar screen for 7.2. I am waiting to do some research
169+ > in what needs to be done, but my initial idea is to use the system cache
170+ > to do namespace mapping, just like is done now for temp tables.
171+ >
172+ > --
173+ > Bruce Momjian | http://candle.pha.pa.us
174+ > pgman@candle.pha.pa.us | (610) 853-3000
175+ > + If your life is a hard drive, | 830 Blythe Avenue
176+ > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
177+ >
178+ > ---------------------------(end of broadcast)---------------------------
179+ > TIP 2: you can get off all lists at once with the unregister command
180+ > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
181+