dbTalk Databases Forums  

Re: [BUGS] BUG #2019: tsearch2-related coredump

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


Discuss Re: [BUGS] BUG #2019: tsearch2-related coredump in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernhard Weisshuhn
 
Posts: n/a

Default Re: [BUGS] BUG #2019: tsearch2-related coredump - 11-04-2005 , 07:40 AM






--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

On Thu, Nov 03, 2005 at 03:12:33PM +0000, Bernhard Weisshuhn <bkw (AT) weisshuhn (DOT) de> wrote:

Quote:
The following bug has been logged online:

Bug reference: 2019
Logged by: Bernhard Weisshuhn
Email address: bkw (AT) weisshuhn (DOT) de
PostgreSQL version: 8.1rc1
Operating system: Linux Fedora Core 4 x86_64
Description: tsearch2-related coredump
Teodor Sigaev sent me a patch even before the web submission got past
the moderators! Not only is tsearch2 quick, its developers are, too!
;-)

The attached patch for Teodor seems to fix the problem for me. I say
'seems' since my testings conditions differ a bit from the ones the
problem appeared, but I did test the same set of queries.

cheers everybody,
Bernhard Weißhuhn

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tsearch2-RNHDRSZ.patch"

*** postgresql-8.1RC1/contrib/tsearch2/ispell/regis.h.orig Thu Nov 3 20:41:27 2005
--- postgresql-8.1RC1/contrib/tsearch2/ispell/regis.h Thu Nov 3 21:06:48 2005
***************
*** 13,19 ****
unsigned char data[1];
} RegisNode;

! #define RNHDRSZ (sizeof(uint32)+sizeof(void*))

#define RSF_ONEOF 1
#define RSF_NONEOF 2
--- 13,19 ----
unsigned char data[1];
} RegisNode;

! #define RNHDRSZ (offsetof(RegisNode,data))

#define RSF_ONEOF 1
#define RSF_NONEOF 2

--Qxx1br4bt0+wmkIi
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

--Qxx1br4bt0+wmkIi--


Reply With Quote
  #2  
Old   
Bernhard Weisshuhn
 
Posts: n/a

Default Re: [BUGS] BUG #2019: tsearch2-related coredump - 11-04-2005 , 07:44 AM






Bernhard Weisshuhn wrote:

Quote:
The attached patch for Teodor seems to fix the problem for me. I say
^^^
I meant 'from' of course ;-)

--bkw

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


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.