dbTalk Databases Forums  

[BUGS] Error in 8.0 rc5 with repeat calls to array operator

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Error in 8.0 rc5 with repeat calls to array operator in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Josh Berkus
 
Posts: n/a

Default [BUGS] Error in 8.0 rc5 with repeat calls to array operator - 01-16-2005 , 06:58 PM






Developers,

I'm finding an issue I thought was fixed with RC2, which is affecting my
ability to use arrays in RC5:

Summary: Fast repeated calls to INT[] = INT[] operator causes error
Severity: Query Failure
Version: 8.0.0rc5, previous builds of 8.0.0
Platform: Gentoo Linux
Description:

The following comparison works fine normally:
template1=# select '{}'::INT[] = '{}'::INT[];
?column?
----------
t
(1 row)


However, we're found that if you run thousands of empty array comparisons in a
few seconds/minutes, eventually the empty array comparison breaks, and you
get:
ERROR: cache lookup failed for function 0

Thereafter, *any* attempt to compare arrays gets:
dm=# select '{}'::INT[] = '{}'::INT[];
ERROR: cache lookup failed for function 0

I'm working on a repeatable test case and seeing whether vacuum and/or restart
affects this, but since we're 24 hours from wrap, I thought I should raise
this issue ASAP.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Josh Berkus
 
Posts: n/a

Default Re: [BUGS] Error in 8.0 rc5 with repeat calls to array operator - 01-16-2005 , 07:39 PM






Folks,

Quote:
I'm finding an issue I thought was fixed with RC2, which is affecting my
ability to use arrays in RC5:
Oh, this may be a bug specifically in INTARRAY; that module is installed.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] Error in 8.0 rc5 with repeat calls to array operator - 01-16-2005 , 08:39 PM



Josh Berkus <josh (AT) agliodbs (DOT) com> writes:
Quote:
However, we're found that if you run thousands of empty array comparisons in a
few seconds/minutes, eventually the empty array comparison breaks, and you
get:
ERROR: cache lookup failed for function 0
I tried

while true; do echo "select '{}'::INT[] = '{}'::INT[];" ; done | psql regression >/dev/null

on a couple different platforms, with and without INTARRAY (which
isn't invoked by this query anyway, so I doubt it matters). I haven't
seen any misbehavior yet.

If you can reproduce this, please attach to the backend with gdb, set a
breakpoint at errfinish(), and get a stack traceback from the point of
the error.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.