Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
Heikki Linnakangas writes: > Tom Lane wrote: >> [ looks at CVS logs ... ] Another case that will cause plan >> invalidation in 8.4 and not 8.3 is creating or dropping a schema. >> Do you do a lot of that? > Hmm, he says he uses temporary tables. Does creating/dropping a > temporary namespace tri

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
Alvaro Herrera writes: > Tom Lane wrote: >> I'm convinced that 8.3 has the same bug, in the sense that it could fail >> this way if it had to revalidate a cached plan. Probably the reason you >> didn't see it before is that 8.4 has more conditions in which it will >> invalidate cached plans. In

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
Frank van Vugt writes: > I'd also like to mention still our C-trigger. : > - it starts of with three plan variables containing '0' and it uses > SPI_saveplan() to fill these with a cached plan > - the three underlying tables will never change structure during such a > session, so I expecte

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Heikki Linnakangas
Tom Lane wrote: > [ looks at CVS logs ... ] Another case that will cause plan > invalidation in 8.4 and not 8.3 is creating or dropping a schema. > Do you do a lot of that? Hmm, he says he uses temporary tables. Does creating/dropping a temporary namespace trigger plan cache invalidation? --

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Alvaro Herrera
Tom Lane wrote: > I'm convinced that 8.3 has the same bug, in the sense that it could fail > this way if it had to revalidate a cached plan. Probably the reason you > didn't see it before is that 8.4 has more conditions in which it will > invalidate cached plans. In particular, is it possible th

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Frank van Vugt
Hi, > I think the attached patch will fix it for you. Great, thanks! I'll apply this tonight, will get back with results tomorrow. -- Best, Frank. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Frank van Vugt
Hi, > I'm convinced that 8.3 has the same bug, in the sense that it could fail > this way if it had to revalidate a cached plan. Probably the reason you > didn't see it before is that 8.4 has more conditions in which it will > invalidate cached plans. Ok > In particular, is it possible that thi

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
I think the attached patch will fix it for you. regards, tom lane Index: src/backend/utils/cache/plancache.c === RCS file: /cvsroot/pgsql/src/backend/utils/cache/plancache.c,v retrieving revision 1.27 diff -c

Re: [BUGS] BUG #4919: CREATE USER command slows down system performance

2009-07-14 Thread Heikki Linnakangas
Lauris Ulmanis wrote: > The following bug has been logged online: > > Bug reference: 4919 > Logged by: Lauris Ulmanis > Email address: lauris.ulma...@mykoob.com > PostgreSQL version: 8.3.7, 8.4.0 > Operating system: Any > Description:CREATE USER command slows down syst

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
Frank van Vugt writes: >> Hmph. So evidently the unexpected recursion into SPI is happening when >> a cached plan has to be recomputed. I suspected something of the sort, >> but now the question is why you didn't see the same problem in 8.3 ... > Just as an additional confirmation: nothing else

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Frank van Vugt
Hi, > Hmph. So evidently the unexpected recursion into SPI is happening when > a cached plan has to be recomputed. I suspected something of the sort, > but now the question is why you didn't see the same problem in 8.3 ... Just as an additional confirmation: nothing else but the db changed when

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Tom Lane
Frank van Vugt writes: > [ backtrace ] Hmph. So evidently the unexpected recursion into SPI is happening when a cached plan has to be recomputed. I suspected something of the sort, but now the question is why you didn't see the same problem in 8.3 ... regards, tom lane

Re: [BUGS] BUG #4920: need case-insensitive searches

2009-07-14 Thread Andres Freund
On Tuesday 14 July 2009 15:37:31 Joshua Tolley wrote: > On Tue, Jul 14, 2009 at 01:28:30PM +, Michael Gould wrote: > > I can see why people use case sensitive searches but it would be nice if > > there was either a setup option in the init program or a encoding and > > locale that would allow f

[BUGS] BUG #4919: CREATE USER command slows down system performance

2009-07-14 Thread Lauris Ulmanis
The following bug has been logged online: Bug reference: 4919 Logged by: Lauris Ulmanis Email address: lauris.ulma...@mykoob.com PostgreSQL version: 8.3.7, 8.4.0 Operating system: Any Description:CREATE USER command slows down system performance Details: When user c

Re: [BUGS] BUG #4918: Weird input syntax for intervals

2009-07-14 Thread Frank Spies
Hi Tom, you are right, it's an RC I was running on. Sorry... Frank www.biotronik.com BIOTRONIK GmbH & Co. KG Woermannkehre 1, 12359 Berlin, Germany Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRA 6501 Vertreten durch ihre Komplementärin: BIOTRONIK Mess- und Therapiegeräte Gm

Re: [BUGS] BUG #4920: need case-insensitive searches

2009-07-14 Thread Joshua Tolley
On Tue, Jul 14, 2009 at 01:28:30PM +, Michael Gould wrote: > I can see why people use case sensitive searches but it would be nice if > there was either a setup option in the init program or a encoding and locale > that would allow for case insenstive searches without having to use a > non-stan

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Marek Lewczuk
2009/7/14 Frank van Vugt : > Basically the flow is as follows: > You can quit gdb by a plain -c, just confirm when it asks you to detach. > The backend will continue to run, your app should now show the error. Thanks. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make change

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Marek Lewczuk
2009/7/14 Frank van Vugt : > Hi, > >> This is a normal interbackend communication signal.  You need to >> configure gdb to ignore SIGUSR2 (ie, pass it on and not stop execution). >> Probably SIGUSR1 too. Frank, thanks for letting me know about your post - I didn't have time yet to read yesterday po

Re: [BUGS] BUG #4890: Allow insert character has no equivalent in "LATIN2"

2009-07-14 Thread Robert Świętochowski
Dnia 13-07-2009 o 19:58:50 Craig Ringer napisał(a): (Please reply to the list, not just to me) I'm sorry. I'd still like to know how you're setting your client encoding. You can't just run "SET client_encoding='win1250'" - you must tell the client program, or the terminal it runs in, to

[BUGS] BUG #4920: need case-insensitive searches

2009-07-14 Thread Michael Gould
The following bug has been logged online: Bug reference: 4920 Logged by: Michael Gould Email address: mgo...@intermodalsoftwaresolutions.net PostgreSQL version: all Operating system: Windows 2008 Server Description:need case-insensitive searches Details: I can see w

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Frank van Vugt
Hi Marek, > Could you please send me gdb > commands - I could also provide the backtrace Basically the flow is as follows: - identify the backend that you expect to run in to this error by pid - start gdb with the option "-p " to attach to this backend - set a conditional breakpoint: b

Re: [BUGS] SPI_ERROR_CONNECT within pl/pgsql, PG 8.4

2009-07-14 Thread Frank van Vugt
Hi, > This is a normal interbackend communication signal. You need to > configure gdb to ignore SIGUSR2 (ie, pass it on and not stop execution). > Probably SIGUSR1 too. Done. Here's the result: Breakpoint 1, 0x0054aec0 in SPI_connect () (gdb) bt #0 0x0054aec0 in SPI_connect ()