Re: Strange RETURN NEXT behaviour in Postgres 8.0

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Strange RETURN NEXT behaviour in Postgres 8.0
Date: 2005-02-16 21:22:20
Message-ID: 4213B98C.7040908@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sergey E. Koposov wrote:
>>>For the real functions which I use, instead of
>>
>>>query = ''SELECT * FROM usno'';
>>
>>>I have
>>
>>>query = my_C_function(some_args);
>>
>>Oh? I'd make a small side bet that the underlying error is in your C
>>function --- possibly it's tromping on some data structure and the
>>damage doesn't have an effect till later. If you can demonstrate the
>>problem without using any custom C functions then I'd be interested to
>>see a test case.
>
>
> I want to clarify, that I have a problem even without my C functions!!
>
> And show the full exact(but long) test case, which I performed just now
> specially.
>
> I begin from table usno with 500 millions records
>
> wsdb=# \d usno
> Table "public.usno"
> Column | Type | Modifiers
> --------+--------+-----------
> ra | real |
> dec | real |
> bmag | real |
> rmag | real |
> ipix | bigint |
> errbox | box |
> Indexes:
> "box_ind" rtree (errbox)
> "ipix_ind" btree (ipix)
> "radec_ind" btree (ra, "dec")

This is just a shot in the dark, but I don't suppose you've dropped or
modified any columns in "usno" have you?

I seem to remember some subtle problems with dropped columns and plpgsql
functions - could be one of those still left. It'd look like tablesize
was the problem because of course no-one's got time to test with 500
million test rows.
--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergey E. Koposov 2005-02-16 21:28:41 Re: Strange RETURN NEXT behaviour in Postgres 8.0
Previous Message Oleg Bartunov 2005-02-16 21:21:36 Re: how to make table inherits another ?