Skip site navigation (1) Skip section navigation (2)

ERROR: _bt_orderkeys: key(s) for attribute 1 missed

From: "Maurice Gittens" <mgittens(at)gits(dot)nl>
To: "PostgreSQL-development" <hackers(at)postgreSQL(dot)org>
Subject: ERROR: _bt_orderkeys: key(s) for attribute 1 missed
Date: 1998-03-03 22:08:34
Message-ID: 002d01bd46f0$ea0f2b80$ (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

As part of my 'learning postgresql' project I've been hacking the the
a bit.
Now I get the following error message:

ERROR:  _bt_orderkeys: key(s) for attribute 1 missed

from the index_getnext call in the following code:

           ScanKeyEntryInitialize(&skey[0], (bits16)0x0,

           namestrcpy(&name, (char*)ctxn);

           ScanKeyEntryInitialize(&skey[1], (bits16)0x0,

           scandesc = index_beginscan(indexrel,false,2,skey);

           if ((indexresult = index_getnext(scandesc,

The code is supposed to search an index created by the following statement:

CREATE UNIQUE INDEX ot_context_idx on ot_context using btree (ctx, name)

Any hints as to where I'm screwing up?:

Thanks for any hints,
with regards from Maurice.

pgsql-hackers by date

Next:From: teunisDate: 1998-03-03 23:06:38
Subject: Re: [HACKERS] PostgreSQL - the Linux of Databases...
Previous:From: Brett McCormickDate: 1998-03-03 21:43:33
Subject: no operator '=' for types char16 and text

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group