Re: [HACKERS] psql and \do

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] psql and \do
Date: 1999-07-07 10:31:39
Message-ID: 199907071031.GAA21817@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I am getting an crash on psql \do when assert checking is enabled. The
> problem is in cost_seqscan() where temp is not > 0.
>
> Not sure on the cause yet.

I have cleaned up some areas, but now cost_index() is getting that
problem with temp as NaN because it has exceeded it's range or something
strange like that.

Does psql \do work on stock 6.5?

Here is the weird part. This is with no optimization, and of course the
assert at the end fails on the test temp >= 0.

Breakpoint 1, cost_index (indexid=17033, expected_indexpages=137251568,
selec=0.00877192989, relpages=2, reltuples=114, indexpages=2,
indextuples=114, is_injoin=1 '\001') at costsize.c:132
132 Cost temp = 0;
(gdb) n
134 if (!_enable_indexscan_ && !is_injoin)
(gdb)
142 if (expected_indexpages <= 0)
(gdb)
144 if (indextuples <= 0)
(gdb) print temp
$1 = 0
(gdb) n
148 temp += expected_indexpages;
(gdb) print temp
$2 = 0
(gdb) n
156 temp += ceil(((double) selec) * ((double) relpages));
(gdb) print temp
$3 = -NaN(0x400000)
(gdb) print expected_indexpages
$4 = 137251568

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-07-07 10:34:26 Re: [HACKERS] psql and \do
Previous Message Zeugswetter Andreas IZ5 1999-07-07 09:13:15 Re: [HACKERS] RE: [GENERAL] Transaction logging