Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure

Lists: pgsql-hackerspgsql-novice
From: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-21 14:52:30
Message-ID: CANqGtSuSDsJ=jmBUviMN_AO=ZAxFhLh4WRNRXVz1Sj_ppMgU0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

Hi All,

I was trying to modify indextupledata structure by adding an integer
variable. ButI faced an error message "psql: FATAL: could not find tuple
for opclass 10032".

Could anyone please help me in resolving this issue.

Regards,
Rohit Goyal


From: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-27 17:05:34
Message-ID: CANqGtSv4otrktR9LSmr-34GnsCw9m-_Onu6RQUB2_EVcPm3kiw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

Hi All,

I was trying to modify indextupledata structure by adding an integer
variable. ButI faced an error message "psql: FATAL: could not find tuple
for opclass 10032".

Could anyone please help me in resolving this issue.

Regards,
Rohit Goyal

--
Regards,
Rohit Goyal


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-27 17:25:42
Message-ID: 10911.1390843542@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com> writes:
> Hi All,
> I was trying to modify indextupledata structure by adding an integer
> variable. ButI faced an error message "psql: FATAL: could not find tuple
> for opclass 10032".

> Could anyone please help me in resolving this issue.

You broke a system catalog index. Without seeing what you changed and
where, it's impossible to say just how, but that's the bottom line.

In recent versions of PG, opclass 10032 is btree name_ops (unless you've
also added/removed system catalog entries), which is a pretty plausible
thing to be one of the first indexscanned fetches during relcache.c
initialization, so I don't think there's any great significance in this
particular error message. It's likely that you broke *all* indexscans
not just one specific one.

regards, tom lane


From: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-28 18:57:25
Message-ID: CANqGtSurPOyMaXdLiq8YNd_yWh3_BKr3keraBUEM12C_iQfQVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

>
> Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com> writes:
>> > Hi All,
>> > I was trying to modify indextupledata structure by adding an integer
>> > variable. ButI faced an error message "psql: FATAL: could not find
>> tuple
>> > for opclass 10032".
>>
>> > Could anyone please help me in resolving this issue.
>>
>> You broke a system catalog index. Without seeing what you changed and
>> where, it's impossible to say just how, but that's the bottom line.
>>
>> This is the first line which i want to write in the code. Can you tel me
> how to add an integer in indextupledata structure if I have a fresh system
> with no changes?
>
> In recent versions of PG, opclass 10032 is btree name_ops (unless you've
>> also added/removed system catalog entries), which is a pretty plausible
>> thing to be one of the first indexscanned fetches during relcache.c
>> initialization, so I don't think there's any great significance in this
>> particular error message. It's likely that you broke *all* indexscans
>> not just one specific one.
>
> I am not sure how i can break all indexscan as this is the first line I
> wrote in the code.
>
>>
>>
> regards, tom lane
>
>
Hello,

I started all the process again and configured my eclipse with raw
postgresql code. First change i made in the code is

I added *int i; *in indextupleData structure in itup.h.

I got the same error message. Please help me to understand and solve the
issue. I want to add an integer in index tuple for btree.

Regards,
Rohit Goyal


From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-28 20:03:22
Message-ID: CAMkU=1wPDEn5kcMCFMt=2ZqPLiupge-+rL1fAKu+MW=3hn2m7w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

On Tue, Jan 28, 2014 at 10:57 AM, Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com> wrote:

Hello,
>
> I started all the process again and configured my eclipse with raw
> postgresql code. First change i made in the code is
>
> I added *int i; *in indextupleData structure in itup.h.
>

You should show us *exactly* where you added it. (Doing so is what "diff"
was developed for, so please use that or a similar tool.)

>
> I got the same error message. Please help me to understand and solve the
> issue. I want to add an integer in index tuple for btree.
>

The data from IndexTupleData is written to disk, and then read back in
again. Did you initdb a new database cluster after you made your change?
If you did the initdb with the original code, and then tried to point your
new code at the old disk files, that is very unlikely to work, as format is
now different.

Cheers,

Jeff


From: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-28 21:59:37
Message-ID: CANqGtSvtpZrZk9-8PC0gXC058XO3RRyM_uxdf6O79D9vZgdkUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

>
> Hello,
>>
>> I started all the process again and configured my eclipse with raw
>> postgresql code. First change i made in the code is
>>
>> I added *int i; *in indextupleData structure in itup.h.
>>
>
> You should show us *exactly* where you added it. (Doing so is what "diff"
> was developed for, so please use that or a similar tool.)
>
>
>>
>> I got the same error message. Please help me to understand and solve the
>> issue. I want to add an integer in index tuple for btree.
>>
>
> The data from IndexTupleData is written to disk, and then read back in
> again. Did you initdb a new database cluster after you made your change?
> If you did the initdb with the original code, and then tried to point your
> new code at the old disk files, that is very unlikely to work, as format is
> now different.
>
> Cheers,
>
> Jeff
>

Hi Jeff and Tom,

Thanks you so much. I was making the mistake you mentioned in the last
mail. :)

Regards,
Rohit Goyal

--
Regards,
Rohit Goyal


From: Jim Nasby <jim(at)nasby(dot)net>
To: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: Request for error explaination || Adding a new integer in indextupleData Structure
Date: 2014-01-30 19:51:57
Message-ID: 52EAAD5D.1090308@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice

On 1/28/14, 3:59 PM, Rohit Goyal wrote:
>
> The data from IndexTupleData is written to disk, and then read back in again. Did you initdb a new database cluster after you made your change? If you did the initdb with the original code, and then tried to point your new code at the old disk files, that is very unlikely to work, as format is now different.
>
> Cheers,
>
> Jeff
>
>
> Hi Jeff and Tom,
>
> Thanks you so much. I was making the mistake you mentioned in the last mail. :)

The real issue here is that you need to bump the catalog version number (sorry, but I don't know where that is in code).
--
Jim C. Nasby, Data Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net