Unix Technical Forum

Fragment by partition

This is a discussion on Fragment by partition within the Informix forums, part of the Database Server Software category; --> Version: Informix 10 I have couple of questions regarding fragment by partition in same dbspace: 1. Is there any ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 04:19 PM
mohitanchlia@gmail.com
 
Posts: n/a
Default Fragment by partition

Version: Informix 10

I have couple of questions regarding fragment by partition in same
dbspace:

1. Is there any limitation as to how many partition a dbspace can
have.
2. Is partition name unique to dbspace or unique to index/table.
Logically it should be unique to dbspace as each partition is a
separate tablespace - correct me if I am wrong.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 04:19 PM
Fernando Nunes
 
Posts: n/a
Default Re: Fragment by partition

mohitanchlia@gmail.com wrote:
> Version: Informix 10
>
> I have couple of questions regarding fragment by partition in same
> dbspace:
>
> 1. Is there any limitation as to how many partition a dbspace can
> have.
> 2. Is partition name unique to dbspace or unique to index/table.
> Logically it should be unique to dbspace as each partition is a
> separate tablespace - correct me if I am wrong.
>


1. I really don't know... Couldn't find anything in the docs... Not even
maximum fragments for a table...

2. Interesting. I'd say the opposite from you: The name has to be unique,
because it acts as an identifier... But the docs state (SQL Syntax):

"You can store fragments of the same table in multiple partitions of the same
dbspace, but each name that you declare after the PARTITION keyword must be
unique among partitions of that dbspace. The PARTITION keyword is required when
you store more than one fragment of the table in the same dbspace. You can also
use the PARTITION keyword to declare a more meaningful name for a dbspace that
has only one partition."

So, apparently you were right... But when I checked the ALTER FRAGMENT syntax
there was no way to specify a pair "part name"/"dbspace"... So I tried:

create table test_frag
(
col1 integer
)
fragment by expression
partition p1 ( mod(col1,2) = 0) in rootdbs,
partition p1 ( mod(col1,2) = 1) in dbs1;
# ^
# 858: Cannot specify the same partition/space name twice in a fragmentation
# specification.
#
#
#

So, the name has to be unique for the table, which I think makes sense, and the
manual needs a correction...

Regards.

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com