Re: [BUGS] BUG #5818: initdb lose the single quote of locale

2011-04-20 Thread Heikki Linnakangas
On 07.01.2011 08:42, yulei wrote: The following bug has been logged online: Bug reference: 5818 Logged by: yulei Email address: yu...@hotmail.com PostgreSQL version: 9.0.2 Operating system: Windows XP Service Pack 3 Description:initdb lose the single quote of locale

Re: [BUGS] BUG #5966: extract(epoch..) function error

2011-04-20 Thread Joshua Tolley
On Wed, Apr 06, 2011 at 11:17:42PM +, Ricardo Solanilla wrote: > -- try this > > select (extract(epoch from (date('2011-03-20'))) - extract(epoch from > (date('2011-03-19' / 3600 > > -- it must be 24 (hours), only occurs in march 19,2011 > -- in v. 8.0 work fine!! Are you sure this isn't

[BUGS] BUG #5988: CTINE duplicates constraints

2011-04-20 Thread Marko Tiikkaja
The following bug has been logged online: Bug reference: 5988 Logged by: Marko Tiikkaja Email address: marko.tiikk...@2ndquadrant.com PostgreSQL version: git master Operating system: Linux Description:CTINE duplicates constraints Details: CREATE TABLE IF NOT EXISTS

Re: [BUGS] BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy

2011-04-20 Thread Tom Lane
Dewin writes: >> But if that theory is correct, this isn't a new >> problem in 9.1, it goes back to 8.3. Have you been running this script >> successfully on older versions? > On 9.0. Thanks. On reflection I concluded that this is a new bug in 9.1 --- or at least, this manifestation is new in

[BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Marko Tiikkaja
The following bug has been logged online: Bug reference: 5989 Logged by: Marko Tiikkaja Email address: marko.tiikk...@2ndquadrant.com PostgreSQL version: git master Operating system: Linux Description:Assertion failure on UPDATE of big value Details: Test case: =#

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Tom Lane
"Marko Tiikkaja" writes: > =# create table foo(a int[]); > CREATE TABLE > =# insert into foo select array(select i from generate_series(1,1) i); > INSERT 0 1 > =# update foo set a = a||1; > TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) != ((void > *)0)) && ((&(newTuple->t_

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Heikki Linnakangas
On 20.04.2011 17:26, Tom Lane wrote: "Marko Tiikkaja" writes: =# create table foo(a int[]); CREATE TABLE =# insert into foo select array(select i from generate_series(1,1) i); INSERT 0 1 =# update foo set a = a||1; TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) !=

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Tom Lane
Heikki Linnakangas writes: > On 20.04.2011 17:26, Tom Lane wrote: >> Why is predicate.c getting called at all when transaction_isolation is >> not SERIALIZABLE? (Although the same crash happens when it is ...) > Because another serializable transaction that reads/updates the tuple > later needs

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Heikki Linnakangas
On 20.04.2011 17:51, Tom Lane wrote: Heikki Linnakangas writes: On 20.04.2011 17:26, Tom Lane wrote: Why is predicate.c getting called at all when transaction_isolation is not SERIALIZABLE? (Although the same crash happens when it is ...) Because another serializable transaction that reads

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Heikki Linnakangas
On 20.04.2011 17:51, Tom Lane wrote: ... which means that the first transaction is completed and can no longer be holding any locks. Predicate locks are held after transaction commit. They can only be cleaned once the xid is older than the oldest xmin among all active serializable transaction

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
"Marko Tiikkaja" wrote: > TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) != > ((void *)0)) && ((&(newTuple->t_self))->ip_posid != 0", File: > "predicate.c", Line: 2282) Am investigating, and have alerted Dan, in case he hasn't noticed this thread. -Kevin -- Sent via pg

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Tom Lane
Heikki Linnakangas writes: > There's *three* transactions here. The first one is serializable, and > reads the tuple. The second one is not serializable, and updates it. The > third one is serializable and updates it again. > The second transaction needs to copy the predicate lock held by the

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Heikki Linnakangas
On 20.04.2011 18:08, Kevin Grittner wrote: "Marko Tiikkaja" wrote: TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) != ((void *)0))&& ((&(newTuple->t_self))->ip_posid != 0", File: "predicate.c", Line: 2282) Am investigating, and have alerted Dan, in case he hasn't noticed

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Tom Lane
Heikki Linnakangas writes: > The immediate fix is trivial: > --- a/src/backend/access/heap/heapam.c > +++ b/src/backend/access/heap/heapam.c > @@ -2859,7 +2859,7 @@ l2: > * Any existing SIREAD locks on the old tuple must be linked to > the new > * tuple for conflict detection

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Heikki Linnakangas wrote: > On 20.04.2011 17:26, Tom Lane wrote: >> Why is predicate.c getting called at all when >> transaction_isolation is not SERIALIZABLE? (Although the same >> crash happens when it is ...) > > Because another serializable transaction that reads/updates the > tuple later

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Heikki Linnakangas wrote: > But the question Tom raised about doing this even for > non-serializable transactions is more serious.. This particular call from heapam.c went in much later than most of the code, since we had trouble proving that anything needed to be done there in the first place

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Tom Lane wrote: > Egad. If that's it, my confidence in the amount of testing SSI > has gotten has just dropped dramatically. If I'm reading this correctly, it would appear that nobody has updated anything to a TOASTed value in a build against HEAD in testing *anything* in the last two and a h

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Tom Lane
"Kevin Grittner" writes: > If I'm reading this correctly, it would appear that nobody has > updated anything to a TOASTed value in a build against HEAD in > testing *anything* in the last two and a half months. And the > regression tests don't include a single UPDATE to a TOASTed value > anywhere

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Tom Lane wrote: > Hmm, is there much regression coverage for TOAST inserts or > deletes either? I'll check. -Kevin -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Tom Lane wrote: > "Kevin Grittner" writes: >> If I'm reading this correctly, it would appear that nobody has >> updated anything to a TOASTed value in a build against HEAD in >> testing *anything* in the last two and a half months. And the >> regression tests don't include a single UPDATE to a T

[BUGS] BUG #5990: 100% CPU reached

2011-04-20 Thread Allen Sooredoo
The following bug has been logged online: Bug reference: 5990 Logged by: Allen Sooredoo Email address: allen_soore...@carrefour.com PostgreSQL version: 8.4 Operating system: Windows Server 2003 Description:100% CPU reached Details: Hi, we are facing a performance is

[BUGS] BUG #5991: Bug restore .backup

2011-04-20 Thread Kananda Silveira
The following bug has been logged online: Bug reference: 5991 Logged by: Kananda Silveira Email address: kanandasilva...@hotmail.com PostgreSQL version: 9.0.3-1-windows Operating system: Windows 7 Description:Bug restore .backup Details: Recently, I change postgreSQ

Re: [BUGS] BUG #5990: 100% CPU reached

2011-04-20 Thread Kevin Grittner
"Allen Sooredoo" wrote: > we are facing a performance issue on Postgres 8.4, the CPU reaches > 100% with less than 50 simultaneous users. > > We were thinking to migrate the HR system from Oracle to Postgres > but now that we have those big performance problems on relatively > small application

Re: [BUGS] BUG #5991: Bug restore .backup

2011-04-20 Thread Heikki Linnakangas
On 20.04.2011 22:22, Kananda Silveira wrote: The following bug has been logged online: Bug reference: 5991 Logged by: Kananda Silveira Email address: kanandasilva...@hotmail.com PostgreSQL version: 9.0.3-1-windows Operating system: Windows 7 Description:Bug restore

Re: [BUGS] BUG #5989: Assertion failure on UPDATE of big value

2011-04-20 Thread Kevin Grittner
Heikki Linnakangas wrote: > The immediate fix is trivial: > > [patch changing one line of code] I have confirmed that without this patch the new regression tests I have proposed will fail, and with the patch they succeed. I have also confirmed that the isolation test suite continues to succe

Re: [BUGS] BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy

2011-04-20 Thread Tom Lane
I wrote: > "Daniel Grace" writes: >> One such file (contents listed below, admittably not 100% useful without a >> full schema and data) makes a bunch of alterations to a table but fails when >> it reaches CLUSTER: >> psql:D:/SVN/wings/wings/branches/devpg/db/lib/course.sql:38: ERROR: index >> 1

Re: [BUGS] BUG #5988: CTINE duplicates constraints

2011-04-20 Thread Tom Lane
"Marko Tiikkaja" writes: > CREATE TABLE IF NOT EXISTS duplicates some constraints if the new table > isn't created: What this means is that the feature was implemented in the wrong place, ie the short-circuit is after rather than before parse_utilcmds.c splits up the CREATE TABLE command into mul

Re: [BUGS] BUG #5990: 100% CPU reached

2011-04-20 Thread Stephen Frost
* Kevin Grittner (kevin.gritt...@wicourts.gov) wrote: > > Could you please provide us some support regarding this issue? [...] > Please read this and post to the pgsql-performance list: > > http://wiki.postgresql.org/wiki/SlowQueryQuestions If that looks like a lot of complication/effort, let's