From: | Jeff <threshar(at)torgo(dot)978(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, "shridhar_daithankar(at)persistent(dot)co(dot)in" <shridhar_daithankar(at)persistent(dot)co(dot)in>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] Physical Database Configuration |
Date: | 2003-06-25 19:23:16 |
Message-ID: | Pine.BSF.4.44.0306251516270.30536-100000@torgo.978.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
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 external app to create the tablespace (known as a
dbspace to informix). Lets call the new one 'newspace'. (the syntax is
onspaces -c -d newspace -p /path/to/space -s size_in_kb -o
offset_in_file I'll cry if we have something liek that in pg)
then to 'use' the space:
create table|index ... in newspace
There's a bizzare syntax for copying a table from one space to another,
but it is mostly useless since it runs in a transaction and if you have a
big table.. well you get the idea.
Where it gets more interesting is table fragments. Informix is able to
fragment a table based on a few different criteria. Each fragment goes in
a separate dbspace and the idea is the planner is smart enough to realize
that it can parellelize seq scans and various other IO operations... but
given the nature of postgres I don't think we could build something like
that...
(for the record, the fragment types are round robin and expression. You
can fragment based on a limited-edition where clause.. )
--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Barwick | 2003-06-25 19:26:12 | Re: INSERT WHERE NOT EXISTS |
Previous Message | scott.marlowe | 2003-06-25 19:04:40 | Re: INSERT WHERE NOT EXISTS |
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2003-06-25 19:33:58 | Re: Physical Database Configuration |
Previous Message | Josh Berkus | 2003-06-25 19:15:41 | Re: Two weeks to feature freeze |