Re: [BUGS] GEQO Triggers Server Crash

2002-12-06 Thread Tom Lane
Kris Jurka <[EMAIL PROTECTED]> writes: > [ GEQO doesn't work anymore in CVS tip ] Ugh. The proximate cause of this is the code I added recently to cache repeated calculations of the best inner indexscan for a given inner relation with potential outer relations. Since geqo_eval() releases all mem

Re: [BUGS] Bug #840: Query with null string

2002-12-06 Thread Stephan Szabo
On Fri, 6 Dec 2002 [EMAIL PROTECTED] wrote: > Sample Code > SELECT * FROM tbluser WHERE userid = "" I assume you mean '' rather than "". 0 length strings used to be interpreted as having the value 0 when converted into an integer. Now it throws an error instead. There was some discussion at t

[BUGS] Bug #840: Query with null string

2002-12-06 Thread pgsql-bugs
Stéphane Bérubé ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description Query with null string Long Description When I do a query (SELECT or INSERT) with null vars (see example) I get warnings from php: Warning: pg_query() query faile

Re: [BUGS] REFERENCES this_table ( oid )

2002-12-06 Thread Stephan Szabo
On Fri, 6 Dec 2002, Marques Johansson wrote: > See the ERROR and comments below... > > create table photos ( > filename varchar[128] not null, > filesize int default null, > width int default null, > height int default null, > origPhoto oid default null references photos ( oid ), > alt

Re: [BUGS] REFERENCES this_table ( oid )

2002-12-06 Thread Jean-Luc Lachance
Hello Marques, Your problem is that the oid is not indexed. Create an index on photos(oid) then add the constraint separately. JLL Marques Johansson wrote: > > See the ERROR and comments below... > > create table photos ( > filename varchar[128] not null, > filesize int default null, >

[BUGS] REFERENCES this_table ( oid )

2002-12-06 Thread Marques Johansson
See the ERROR and comments below... create table photos ( filename varchar[128] not null, filesize int default null, width int default null, height int default null, origPhoto oid default null references photos ( oid ), altDesc varchar[128] default null ); psql:sid-sql:40: NOTICE: CR

Re: bogus varno EXPLAIN bug (was Re: [BUGS] Explain analyze gives bogus varno for dblink views)

2002-12-06 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Ah, thanks for the simplified test case. This is undoubtedly my fault >> ... will look into it. It is probably somewhat related to the join >> alias problem found yesterday (ie, somebody somewhere is trying to use >> the wrong rangetable

Re: bogus varno EXPLAIN bug (was Re: [BUGS] Explain analyze gives

2002-12-06 Thread Joe Conway
Tom Lane wrote: Ah, thanks for the simplified test case. This is undoubtedly my fault ... will look into it. It is probably somewhat related to the join alias problem found yesterday (ie, somebody somewhere is trying to use the wrong rangetable list to interpret a Var node). I spent a bit more

Re: bogus varno EXPLAIN bug (was Re: [BUGS] Explain analyze gives bogus varno for dblink views)

2002-12-06 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > I can confirm this both on cvs tip (pulled after noon PST today) and 7.3 > stable branch. It is not related to dblink, but rather the backend. Here's a > (contrived) script based on Kris's example to trigger it: Ah, thanks for the simplified test case. T