Re: ¿¿¿past chunk end???

From: "luis garcia" <ldgarc(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ¿¿¿past chunk end???
Date: 2006-11-01 20:40:52
Message-ID: 3de424340611011240p5be7d493r8bfbcfee9d09ac78@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, thanks for your answers...

>Carefully check all the palloc's you are doing in your code.
>This warning is shown when you write some extra bytes to the memory
>and size of your data goes beyond the allocated size.

There's no problem in the memory allocation, just in relfrequency,
that's the "Big Problem" for me...

>Well, it's a bit hard to tell since you don't tell what changes you
>actually made to the catalog. Did you remember to update the length to
>the catalog entry and update the struct and all those details?

Well about the changes I have made, they are working just fine. All the
structures length have been updated and as I said we added 7 new fields
to pg_class structure and there was no problem. The problem here is with
relfrequency only.

> What's the type of "relfrequency" actually?>

I'm sorry, but I forgot to show you the relfrequency definition in pg_class.

Here It is:

**************************************************************************************************
// FILE: pg_class.h
// STRUCTURE: CATALOG(pg_class,1259) BKI_BOOTSTRAP
.
.
.
bool relvalidtime; /* T if the table has a valid time attribute */
NameData relvttype; /* The type of the valid time column of the table:
* event, state or null (when the
table isn't a TSQL2
* temporal table)
*/

int2 relvtprecision; /* The precision of the valid time column. By
default 0 */
bool reltranstime; /* T if the table has TSQL2 transaction time
attribute */
bool relhasfrequency;/* relation has time frequency */
NameData relfrequencytype;/* table time frequency type (REAL TIME,
HISTORIC)*/
NameData relfrequency; /* table time frequency value*/
.
.
.
**************************************************************************************************
These are the seven fields we just added, and as I said the only one with
problems is relfrequency.

> Much more info needed...

What else could be important there?

Thanks again....

--
Luis D. García M.
Telf: 0414-3482018

- FACYT - UC -
- Computación -

In response to

  • Re: ¿¿¿pas at 2006-11-01 19:59:00 from Martijn van Oosterhout

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Maxwell 2006-11-01 20:46:51 Re: [HACKERS] Index greater than 8k
Previous Message JEAN-PIERRE PELLETIER 2006-11-01 20:29:33 Index ignored with "is not distinct from", 8.2 beta2