Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-07-18 Thread Gavin Sherry
On Fri, 18 Jul 2003, Bruce Momjian wrote: > Tom Lane wrote: > > [EMAIL PROTECTED] writes: > > > I disagree. Just as you can have multiple schemas within one database > > > you can have multiple tablespaces within one database. > > > > > And the tablespace is irrelevant as far as specifying an

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-07-18 Thread Rod Taylor
> Another good reason for per-database directories under the tablespace is > to prevent directories from containing too many files. Actually, I would take that as an reason not to have database directories. If the number of files becomes a concern, we would need some kind of a hashing algorithm t

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-07-18 Thread Bruce Momjian
Tom Lane wrote: > [EMAIL PROTECTED] writes: > > I disagree. Just as you can have multiple schemas within one database > > you can have multiple tablespaces within one database. > > > And the tablespace is irrelevant as far as specifying an object is concerned. > > A fully qualified object would

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-29 Thread Shridhar Daithankar
On Wednesday 25 June 2003 21:21, Jonathan Bartlett wrote: > My solution did not involve tablespaces, but was more of a quick solution > to make it easier for admins to do _some_ sort of physical configuration. > > The idea is that the developer could do something like > > 'create alternate location

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-28 Thread nolan
> Well, correct solution is to implement tablespaces on which objects like > databases, tables and indexes can be put. I've not looked at the SQL standard, but it seems to me like the order should be: Databases Tablespaces Schemas Objects (tables, indexes, functions, etc.) A

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-28 Thread Jonathan Bartlett
My solution did not involve tablespaces, but was more of a quick solution to make it easier for admins to do _some_ sort of physical configuration. The idea is that the developer could do something like 'create alternate location ALTERNATE_LOCATION_NAME for DATABASE_OBJECT_NAME at "/PATH/TO/PHYSI

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-27 Thread Fernando Schapachnik
En un mensaje anterior, [EMAIL PROTECTED] escribió: > > Well, correct solution is to implement tablespaces on which objects like > > databases, tables and indexes can be put. > > I've not looked at the SQL standard, but it seems to me like the order > should be: > > Databases >Tablespaces

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-27 Thread Ron Johnson
On Wed, 2003-06-25 at 10:51, Jonathan Bartlett wrote: > My solution did not involve tablespaces, but was more of a quick solution > to make it easier for admins to do _some_ sort of physical configuration. > > The idea is that the developer could do something like > > 'create alternate location A

Tablespaces (was Re: [HACKERS] [GENERAL] Physical Database Configuration )

2003-06-26 Thread Christopher Kings-Lynne
> ROTFL... the answer is no. Feature freeze is Tuesday, people. In > practice, the time to start coding new stuff is already long past. > Especially major new stuff. > > If you start now you might have something done for 7.5. Can everyone who is interested in actually coding a tablespaces implem

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Christopher Kings-Lynne
> > Tablespaces > > databases > >schemas > > objects > > > > with each of them implemented as a directory and data files under it. If we > > could get a quota check propogated in both direction, that would be pretty > > good, may be a warning when things start getting close to limit. Dat

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Christopher Kings-Lynne
> Good question. > > If it gets in 7.4, that would be more than a killer feature to put against 7.4 > release, with due respect to all other enhancements in progress.. It's not going to happen. Chris ---(end of broadcast)--- TIP 6: Have you search

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread nolan
> Shridhar Daithankar <[EMAIL PROTECTED]> writes: > > On Thursday 26 June 2003 21:56, [EMAIL PROTECTED] wrote: > >> Is this doable within the time frame for the 7.4 feature freeze? > > > Good question. > > ROTFL... the answer is no. Feature freeze is Tuesday, people. In > practice, the time to

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Tom Lane
Shridhar Daithankar <[EMAIL PROTECTED]> writes: > On Thursday 26 June 2003 21:56, [EMAIL PROTECTED] wrote: >> Is this doable within the time frame for the 7.4 feature freeze? > Good question. ROTFL... the answer is no. Feature freeze is Tuesday, people. In practice, the time to start coding ne

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Tom Lane
[EMAIL PROTECTED] writes: > Being able to zap a database with one or more 'rm -rf' commands assumes > that there will be files from just ONE database permitted in any given > tablespace, and ONLY files from that database. I said no such thing. Look at the structure again: $PGDATA/base/dboid/..

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Shridhar Daithankar
On Thursday 26 June 2003 21:56, [EMAIL PROTECTED] wrote: > Is this doable within the time frame for the 7.4 feature freeze? Good question. If it gets in 7.4, that would be more than a killer feature to put against 7.4 release, with due respect to all other enhancements in progress.. Shridhar

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread nolan
> > Well, with above proposal, drop database should be as simple. It's just that > > it would be more than one `rm -rf`rather than just one. > > Right, there would be potentially one per tablespace. The key point > here is that the tablespace definitions are known cluster-wide, so a > "DROP DATA

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Tom Lane
Shridhar Daithankar <[EMAIL PROTECTED]> writes: > On Thursday 26 June 2003 21:29, Tom Lane wrote: >> I can see no reason that we'd want a level of directory associated with >> schemas... > Moving a multi-hundreds-of-GB table across schemas would be sooo easy..:-) No, it would be harder.

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Shridhar Daithankar
On Thursday 26 June 2003 21:29, Tom Lane wrote: > Shridhar Daithankar <[EMAIL PROTECTED]> writes: > > Well, consider this. Keep in mind that all of them are directories.. > > I can see no reason that we'd want a level of directory associated with > schemas... Moving a multi-hundreds-of-GB table a

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Tom Lane
Shridhar Daithankar <[EMAIL PROTECTED]> writes: > Well, consider this. Keep in mind that all of them are directories.. I can see no reason that we'd want a level of directory associated with schemas... > Well, with above proposal, drop database should be as simple. It's just that > it would be m

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Shridhar Daithankar
On Thursday 26 June 2003 20:22, Tom Lane wrote: > [EMAIL PROTECTED] writes: > > I disagree. Just as you can have multiple schemas within one database > > you can have multiple tablespaces within one database. > > > > And the tablespace is irrelevant as far as specifying an object is > > concerned.

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Tom Lane
[EMAIL PROTECTED] writes: > I disagree. Just as you can have multiple schemas within one database > you can have multiple tablespaces within one database. > And the tablespace is irrelevant as far as specifying an object is concerned. > A fully qualified object would be: > database.schema.

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread nolan
> That should be > > Tablespaces > databases >schemas > objects > > with each of them implemented as a directory and data files under it. If we > could get a quota check propogated in both direction, that would be pretty > good, may be a warning when things start getting close to lim

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-26 Thread Shridhar Daithankar
On Wednesday 25 June 2003 20:49, [EMAIL PROTECTED] wrote: > > Well, correct solution is to implement tablespaces on which objects like > > databases, tables and indexes can be put. > > I've not looked at the SQL standard, but it seems to me like the order > should be: > > Databases >Tablespaces

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Andreas Pflug
johnn wrote: On Wed, Jun 25, 2003 at 10:30:31AM -0500, Andrew Dunstan wrote: DB2 looks good. I have horrid, horrid memories of wrestling with the Oracle "extent" madness. I do think that it's worth providing additional access points to tablespaces, though. That is, it would make sense

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread nolan
> DB2 looks good. I have horrid, horrid memories of wrestling with the Oracle > "extent" madness. I think Oracle's extents came from their fixed size data file legacy, in 9i the extent limits appear to be completely overridable and sometimes even ignored, such as the next extent size. I agree th

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread johnnnnnn
On Wed, Jun 25, 2003 at 10:30:31AM -0500, Andrew Dunstan wrote: > DB2 looks good. I have horrid, horrid memories of wrestling with the > Oracle "extent" madness. I do think that it's worth providing additional access points to tablespaces, though. That is, it would make sense to me to allow "CREAT

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Andrew Dunstan
DB2 looks good. I have horrid, horrid memories of wrestling with the Oracle "extent" madness. andrew AgentM wrote: > On Wednesday, June 25, 2003, at 12:10 PM, johnn wrote: >> On Wed, Jun 25, 2003 at 11:34:14AM -0400, Tom Lane wrote: >>> Has anyone looked at the syntaxes used by other databas

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Jeff
On Wed, 25 Jun 2003, Tom Lane wrote: > Has anyone looked at the syntaxes used by other databases to control > tablespaces (Oracle, DB2, etc)? I have no strong desire to slavishly > follow Oracle, but it would be a shame to miss out on any good ideas. > Informix is pretty bad. First, you use an ex

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread AgentM
On Wednesday, June 25, 2003, at 12:10 PM, johnn wrote: On Wed, Jun 25, 2003 at 11:34:14AM -0400, Tom Lane wrote: Has anyone looked at the syntaxes used by other databases to control tablespaces (Oracle, DB2, etc)? I have no strong desire to slavishly follow Oracle, but it would be a shame to m

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread johnnnnnn
On Wed, Jun 25, 2003 at 11:34:14AM -0400, Tom Lane wrote: > Has anyone looked at the syntaxes used by other databases to control > tablespaces (Oracle, DB2, etc)? I have no strong desire to > slavishly follow Oracle, but it would be a shame to miss out on any > good ideas. DB2: CREATE TABLESPACE

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > I have started working on tablespaces (to the extent that I am capable!), > based not on the rejected patch, but on Jim's eventual syntax proposal that > was never developed. Has anyone looked at the syntaxes used by other databases to contro

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Shridhar Daithankar
On 25 Jun 2003 at 12:30, Shridhar Daithankar wrote: > On 25 Jun 2003 at 14:55, Christopher Kings-Lynne wrote: > > > > Well, correct solution is to implement tablespaces on which objects like > > > databases, tables and indexes can be put. > > > > I have started working on tablespaces (to the ext

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Christopher Kings-Lynne
> > I have started working on tablespaces (to the extent that I am capable!), > > based not on the rejected patch, but on Jim's eventual syntax proposal that > > was never developed. > > Hmm... Remember feature freeze is 1st of July. So unless you send out a > minimally working patch before that, i

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-25 Thread Shridhar Daithankar
On 25 Jun 2003 at 14:55, Christopher Kings-Lynne wrote: > > Well, correct solution is to implement tablespaces on which objects like > > databases, tables and indexes can be put. > > I have started working on tablespaces (to the extent that I am capable!), > based not on the rejected patch, but o

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-24 Thread Christopher Kings-Lynne
> Well, correct solution is to implement tablespaces on which objects like > databases, tables and indexes can be put. I have started working on tablespaces (to the extent that I am capable!), based not on the rejected patch, but on Jim's eventual syntax proposal that was never developed. eg. CR

Re: [HACKERS] [GENERAL] Physical Database Configuration

2003-06-24 Thread Shridhar Daithankar
On 24 Jun 2003 at 14:48, Jonathan Bartlett wrote: > I know the current method for specifying alternate drives for PG tables is > by using symlinks. I had some ideas for simple ways to do this in PG > code, but wanted to know if anyone was working on this right now. I'd > hate to take the time to