Re: [BUGS] BUG #8453: uninitialized memory access in pg_receivexlog and other bugs

2013-09-16 Thread Andrew Gierth
> "Heikki" == Heikki Linnakangas writes: >> Also, receivexlog is ignoring .partial and .history files when >> determining which timeline to start streaming from, which means >> that if there are two timeline changes that are not separated by a >> WAL segment switch, it will fail to operat

Re: [BUGS] BUG #8329: UPDATE x SET x.y = x.y + z does not work in PL/pgSQL

2013-07-26 Thread Andrew Gierth
Seems clearly your mistake to me... you do realize that (null + z) is always going to be null, right? Maybe your totals columns should have been declared NOT NULL (and presumably DEFAULT 0) to avoid this problem? Adding some diagnostics to your function (and fixing all the syntax errors) and runni

Re: [BUGS] small hstore bugfixes for 9.0 (w/patch)

2010-09-15 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> The gist one is just that the old code was abusing DatumGetHStoreP >> by applying it to something that wasn't an hstore. This didn't >> matter before the format upgrade code was put in, and it didn't >> show up in tests because you need to index a very large

Re: [BUGS] small hstore bugfixes for 9.0 (w/patch)

2010-09-15 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> Two small fixes for hstore-new. >> The hstore_compat one is arguable as to what is the best approach; the >> assert that was there was just wrong, but I have been unable after >> considerable searching to find any architectures that would fail the >> check.

[BUGS] small hstore bugfixes for 9.0 (w/patch)

2010-09-15 Thread Andrew Gierth
Two small fixes for hstore-new. The hstore_compat one is arguable as to what is the best approach; the assert that was there was just wrong, but I have been unable after considerable searching to find any architectures that would fail the check. The version in this patch will just treat any old-fo

Re: [BUGS] BUG #5240: Stable Functions that return a table type with a dropped column fail

2009-12-15 Thread Andrew Gierth
>>>>> "Tom" == Tom Lane writes: > Andrew Gierth writes: >> I don't think it's particularly closely related to #4907. Tom> Yeah. BTW, did #4907 ever get fixed in the back branches? -- Andrew (irc:RhodiumToad) -- Sent via pgsql-bugs m

Re: [BUGS] BUG #5240: Stable Functions that return a table type with a dropped column fail

2009-12-11 Thread Andrew Gierth
> "David" == "David Gardner" writes: David> The following bug has been logged online: David> Bug reference: 5240 David> Logged by: David Gardner David> Email address: dgard...@creatureshop.com David> PostgreSQL version: 8.4.1 David> Operating system: Debian Linux,

Re: [BUGS] BUG #5234: ALTER TABLE ... RENAME COLUMN change view definition incorrectly

2009-12-10 Thread Andrew Gierth
> "Robert" == Robert Haas writes: > On Thu, Dec 10, 2009 at 1:46 AM, Tom Lane wrote: >> >> My reading of the spec is that USING (and therefore NATURAL) is >> defined to join identically named columns.  Therefore, renaming >> one of the input columns as the OP did *should* indeed *must*

Re: [BUGS] BUG #5235: Segmentation fault under high load through JDBC

2009-12-09 Thread Andrew Gierth
>>>>> "Andrew" == Andrew Gierth writes: Andrew> What are the definitions of your instr() and ad_parent_tree() Andrew> functions? Well, there's so much wrong with that ad_parent_tree function - it's always going to recurse infinitely (with a new subxact

Re: [BUGS] BUG #5235: Segmentation fault under high load through JDBC

2009-12-09 Thread Andrew Gierth
> "Oleg" == Oleg Jurtšenko writes: Oleg> I tried to execute "select instr(ad_parent_tree(?,?),'|'||'?'||'|') AS Oleg> isItsOwnChild from dual;" query with psql terminal and got Oleg> segmentation fault as well. Oleg> The most interesting thing is that this function makes segmentation Ol

Re: [BUGS] BUG #5235: Segmentation fault under high load through JDBC

2009-12-09 Thread Andrew Gierth
> "Robert" == Robert Haas writes: Robert> How about (3) getrlimit(RLIMIT_STACK) lies through its teeth, Robert> by ignoring the existence of another and lower limit imposed Robert> elsewhere? Robert> A little Googling seems to reveal that FreeBSD has a Robert> parameter called MAXSSIZ (

Re: [BUGS] BUG #5154: ERROR: cannot assign non-composite value to a row variable

2009-10-31 Thread Andrew Gierth
> "Pavel" == Pavel Stehule writes: >> As discussed on the irc. I had a problem with a utility function >> that was being passed a NEW row and a null for the OLD row. The >> error was created when it tries to store the row variable in the >> local variables. RhodiumToad on the list provide

Re: [BUGS] BUG #5126: convert_to preventing index scan

2009-10-22 Thread Andrew Gierth
> "Tom" == Tom Lane writes: Tom> The conversion itself is dependent on changeable catalog Tom> entries, ie, pg_conversion. So "stable" seems the appropriate Tom> marking to me. >> That sounds like a bit of a stretch to me... we treat lots of >> stuff as immutable which is actually easi

Re: [BUGS] BUG #5126: convert_to preventing index scan

2009-10-22 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> convert_to is a builtin function. If there's a bug here, it's that >> convert_to is defined as stable rather than immutable. (Sure it >> depends on server_encoding, but that can't exactly change... if >> there's any other reason why it's not immutable, I can

Re: [BUGS] BUG #5126: convert_to preventing index scan

2009-10-22 Thread Andrew Gierth
> "Peter" == Peter Eisentraut writes: >> I have table with bytea column, which is indexed (1) >> I want to use index during pattern matching (eg. dir like >> someDirectoryName >> || '/%'), but concatenation of two strings cause error (2) >> So I have to use function convert_to (convertin

Re: [BUGS] BUG #5113: Postgres not scanning indexes

2009-10-13 Thread Andrew Gierth
> "dan" == "dan" writes: dan> I expect the explain to say index scan; instead it says table scan. dan> The index has ALL the info I need It may have all the info _you_ need, but what it doesn't have is all the info that _postgres_ needs; specifically it doesn't contain enough row visibili

Re: [BUGS] BUG #5087: Submitted bug reports not showing up in a timely manner (or at all)

2009-09-29 Thread Andrew Gierth
> "Joshua" == Joshua Tolley writes: >> > To pick a recent case, bug #5085 was submitted by an IRC user (at my >> > suggestion) at 2009-09-28 22:12 +, or a bit over 22 hours ago as I >> > write Joshua> I am a -bugs moderator, and don't see that I ever got a Joshua> notice that I nee

Re: [BUGS] BUG #5087: Submitted bug reports not showing up in a timely manner (or at all)

2009-09-29 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> They get processed in the moderator queue of -bugs along with all >> other posts there... We're probably just back in the situation >> where we need more moderators for it... Tom> A quick grep in my mail logs shows that since Jan 1, I have Tom> received 44

[BUGS] BUG #5087: Submitted bug reports not showing up in a timely manner (or at all)

2009-09-29 Thread Andrew Gierth
The following bug has been logged online: Bug reference: 5087 Logged by: Andrew Gierth Email address: and...@tao11.riddles.org.uk PostgreSQL version: any Operating system: any Description:Submitted bug reports not showing up in a timely manner (or at all) Details

Re: [BUGS] BUG #5084: Query gives different number of rows depending on ORDER BY

2009-09-28 Thread Andrew Gierth
> "Tom" == Tom Lane writes: Tom> I'm inclined to think that the best solution is to have Tom> process_equivalence just reject any clauses that have equal() Tom> left and right sides, ie, throw them back to be processed as Tom> ordinary non-equivalence clauses. >> Hmm. Is it ever possibl

Re: [BUGS] BUG #5084: Query gives different number of rows depending on ORDER BY

2009-09-28 Thread Andrew Gierth
> "Tom" == Tom Lane writes: Tom> After digging into it, I find that: Tom> 1. Without ORDER BY, process_equivalence generates an Tom> equivalence class that lists k twice. This is pretty bogus but Tom> it happens to produce the desired results in the example at Tom> hand. (In some othe

Re: [BUGS] BUG #5084: Query gives different number of rows depending on ORDER BY

2009-09-28 Thread Andrew Gierth
> Bernt Marius Johnsen wrote: >> Dump of the database: To save anyone else the bother, there's a VASTLY simpler testcase for this one, requiring no tables at all: test1=# explain select * from (values (1),(null)) v(k) where k = k order by k; QUERY PLAN

Re: [BUGS] BUG #5077: Corrupted Table

2009-09-23 Thread Andrew Gierth
> "Bryan" == "Bryan McLemore" writes: Bryan> "invalid page header in block 900 of relation pg_tblspc/32041/138911/187737" Bryan> http://pgsql.privatepaste.com/83JfmQGtS5 Privatepaste urls do expire, so for the record here is the relevant part of the data in question: 82 00 00

[BUGS] BUG #5053: domain constraints still leak

2009-09-13 Thread Andrew Gierth
The following bug has been logged online: Bug reference: 5053 Logged by: Andrew Gierth Email address: and...@tao11.riddles.org.uk PostgreSQL version: 8.5devel Operating system: FreeBSD Description:domain constraints still leak Details: Domain NOT NULL constraints

Re: [BUGS] 8.4.0 data loss / HOT-related bug

2009-08-23 Thread Andrew Gierth
> "Greg" == Greg Stark writes: Greg> Either of two things are true. Greg> Either transaction 6179 committed, [snip] This is all missing the point. The row should have been killed by transaction 4971, NOT 6179. By the time transaction 6179 tried to do anything with it, it was almost certain

Re: [BUGS] BUG #4929: Corrupted pg_class, possibly truncate/rollback related

2009-07-20 Thread Andrew Gierth
> "Tom" == Tom Lane writes: > "Robert Treat" writes: >> PostgreSQL version: 8.3.1 >> Description:Corrupted pg_class, possibly truncate/rollback related Tom> FWIW, there is a bug fix in 8.3.4 addressing possible HOT-chain Tom> corruption after a REINDEX of pg_class. Not sure if

Re: [BUGS] BUG #4929: Corrupted pg_class, possibly truncate/rollback related

2009-07-20 Thread Andrew Gierth
> "Robert" == "Robert Treat" writes: Robert> Bug reference: 4929 Robert> Logged by: Robert Treat Robert> Email address: xzi...@users.sourceforge.net Robert> PostgreSQL version: 8.3.1 pe2=# select xmin, xmax, cmin, cmax, ctid, oid, relnamespace, relname, reltype, relow

Re: [BUGS] BUG #4913: Row missing from primary key index

2009-07-09 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> The system was recently dump/restored from a different box. The >> failing rows are all new inserts since the restore. Tom> So the table has been insert-only so far? I was just thinking Tom> that HOT bugs seemed like a probable explanation, but that idea

Re: [BUGS] BUG #4913: Row missing from primary key index

2009-07-09 Thread Andrew Gierth
> "Tom" == Tom Lane writes: >> Notice that the two rows seem entirely independent (different >> xmin). The OP stated that his app generally does single-row >> inserts (with some exceptions not relevent here); however, we >> found a nearby row which shares the xmin: Tom> How is the time

Re: [BUGS] BUG #4913: Row missing from primary key index

2009-07-09 Thread Andrew Gierth
> "Mathieu" == "Mathieu De Zutter" writes: Mathieu> I have a table log_event with a primary key on an integer Mathieu> 'id', called log_event_pkey. Mathieu> The tables contains a duplicate for id = 15723018. The Mathieu> duplicate (note that besides the id, all data differs) Mathieu> do

[BUGS] BUG #4821: LIKE '%_' fails

2009-05-22 Thread Andrew Gierth
The following bug has been logged online: Bug reference: 4821 Logged by: Andrew Gierth Email address: and...@tao11.riddles.org.uk PostgreSQL version: 8.3-8.4 Operating system: all Description:LIKE '%_' fails Details: # select 'foo'

[BUGS] BUG #4553: HOLD cursors not materializing results fully

2008-11-28 Thread Andrew Gierth
The following bug has been logged online: Bug reference: 4553 Logged by: Andrew Gierth Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3-8.4 Operating system: all Description:HOLD cursors not materializing results fully Details: (tested on 8.3.5 and HEAD as

Re: [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2008-11-10 Thread Andrew Gierth
> "Pavel" == "Pavel Stehule" <[EMAIL PROTECTED]> writes: >> Well, changing the semantics of an already-released statement >> carries a risk of breaking existing apps that aren't expecting it >> to change FOUND. So I'd want to see a pretty strong case why this >> is important --- not just

Re: [BUGS] plperl & sort

2008-11-06 Thread Andrew Gierth
> "Alex" == Alex Hunsaker <[EMAIL PROTECTED]> writes: Alex> I submitted http://rt.perl.org/rt3/Public/Bug/Display.html?id=60374 Feel free to add my explanation to that (I couldn't see an obvious way to do it myself) -- Andrew. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.o

Re: [BUGS] plperl & sort

2008-11-06 Thread Andrew Gierth
> "Alex" == Alex Hunsaker <[EMAIL PROTECTED]> writes: >> Then explain why the problem goes away when you build perl with >> threading turned off. Alex> Hrm yep i built one without threads problem disappears... Guess Alex> Ive just been out to lunch :) If it helps any, I've tracked down i

Re: [BUGS] plperl & sort

2008-11-05 Thread Andrew Gierth
> "Tom" == Tom Lane <[EMAIL PROTECTED]> writes: >> Nice theory, but completely wrong: sort creates $a and $b in the >> current package, not in main::. Tom> Hmm ... so then why are we seeing a failure? FWIW, I _don't_ see the failure. It seems to occur ONLY if perl was built with threading

Re: [BUGS] plperl & sort

2008-11-05 Thread Andrew Gierth
> "Alex" == Alex Hunsaker <[EMAIL PROTECTED]> writes: >> Hmm ... so then why are we seeing a failure? [...] Alex> This is not a Safe bug IMHO its our (ab)use of it that is Alex> causing the problem. Then explain why the problem goes away when you build perl with threading turned off. --

Re: [BUGS] plperl & sort

2008-11-05 Thread Andrew Gierth
> "nathan" == nathan wagner <[EMAIL PROTECTED]> writes: nathan> Completely untested speculation based on my knowledge of perl nathan> and a bit of reading: nathan> The reason you can't see $a and $b is that sort internally nathan> sets these variables in the main package. That is, sort i