Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Strange error when updating a partitioned table
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martin Bowes  
View profile  
 More options Jun 14 2012, 9:43 am
Newsgroups: comp.databases.ingres
From: Martin Bowes <martin.bo...@ctsu.ox.ac.uk>
Date: Thu, 14 Jun 2012 13:43:17 +0000
Local: Thurs, Jun 14 2012 9:43 am
Subject: [Info-Ingres] Strange error when updating a partitioned table

Hi All,

On II 10.0.0 (a64.lnx/132)NPTL + p14200

We have a partitioned table in which we are running an update. The columns being updated are not part of the partitioning scheme but are part of the tables primary key.
create table val_time(
        field_id integer not null,
        ins_index smallint not null,
        arr_index smallint not null,
        pid integer not null,
        value ingresdate not null,
        packet_id integer not null default -1,
        status i1 not null default 0
)
with duplicates,
nojournaling,
page_size = 32768,
location = (ii_database),
partition = (HASH on field_id
          partition val_time_pp1,
          partition val_time_pp2,
          partition val_time_pp3,
          partition val_time_pp4
        ),
security_audit=(table,norow)

The update is: update val_time set arr_index=0 where arr_index = -1

There are no cases in the table where this would cause a violation of the primary key.
To avoid an awful lot of unnecessary action from an associated rule we are doing this with set norules in effect.

[45676             , 2478      ,  00002aaae04b8200, dmrreplace.c:313      ]: Thu Jun 14 14:10:28 2012 E_DM0022_BAD_MASTER_OP    Invalid dmrreplace DMF operation on partitioned master ace.val_time.
45676             , 2478      ,  00002aaae04b8200, qeq.c:3638            ]: ULE_FORMAT: qeferror.c:916  Couldn't look up message 30022 (reason: ER error 10903)
E_CL0903_ER_BADPARAM    Bad parameter
45676             , 2478      ,  00002aaae04b8200, qeferror.c:738        ]: Thu Jun 14 14:10:28 2012 E_QE009C_UNKNOWN_ERROR    Unexpected error received from another facility.  Check the server error log.
45676             , 2478      ,  00002aaae04b8200, scsqncr.c:14023       ]: Thu Jun 14 14:10:28 2012 E_SC0216_QEF_ERROR    Error returned by QEF.
45676             , 2478      ,  00002aaae04b8200, scsqncr.c:14024       ]: Thu Jun 14 14:10:28 2012 E_SC0206_CANNOT_PROCESS   An internal error prevents further processing of this query.
Associated error messages which provide more detailed information about the problem can be found in the error log, II_CONFIG:errlog.log
45676             , 2478      ,  00002aaae04b8200, scsqncr.c:14024       ]: PQuery:  UPDATE val_time SET arr_index = 0 WHERE arr_index = -1
45676             , 2478      ,  00002aaae04b8200, scsqncr.c:14024       ]: Query:   UPDATE val_time SET arr_index = 0 WHERE arr_index = -1

Anyone know what might be happening?

Marty


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Bowes  
View profile  
 More options Jun 14 2012, 10:29 am
Newsgroups: comp.databases.ingres
From: Martin Bowes <martin.bo...@ctsu.ox.ac.uk>
Date: Thu, 14 Jun 2012 14:29:39 +0000
Local: Thurs, Jun 14 2012 10:29 am
Subject: Re: [Info-Ingres] Strange error when updating a partitioned table
Hi Karl,

Top node is an UPD.

I've transferred the table in question (sans rules) to a test database and ran the update there with no problem. The table was structured and partitioned on the test database exactly as per the real one.

I suspect that this is some strange interaction with the rules on the table.

Marty


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karl Schendel  
View profile  
 More options Jun 14 2012, 10:08 am
Newsgroups: comp.databases.ingres
From: Karl Schendel <schen...@kbcomputer.com>
Date: Thu, 14 Jun 2012 15:08:15 +0100
Local: Thurs, Jun 14 2012 10:08 am
Subject: Re: [Info-Ingres] Strange error when updating a partitioned table

On Jun 14, 2012, at 2:43 PM, Martin Bowes wrote:

> Hi All,

> On II 10.0.0 (a64.lnx/132)NPTL + p14200

> We have a partitioned table in which we are running an update. The columns being updated are not part of the partitioning scheme but are part of the tables primary key....

> The update is: update val_time set arr_index=0 where arr_index = -1

> There are no cases in the table where this would cause a violation of the primary key.
> To avoid an awful lot of unnecessary action from an associated rule we are doing this with set norules in effect.

> [45676             , 2478      ,  00002aaae04b8200, dmrreplace.c:313      ]: Thu Jun 14 14:10:28 2012 E_DM0022_BAD_MASTER_OP    Invalid dmrreplace DMF operation on partitioned master ace.val_time
>  ...
> Anyone know what might be happening?

I think you have found a bug, and I have a bad feeling that it might not
be fixed.  Run your query with "set optimizeonly" and "set trace point op149";
is the top of the query plan an UPD or a PUPD?  If it's PUPD, I think the
partition DMR_CB is not being set up.

Open an issue for this.

Karl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »