Re: [BUGS] BUG #7883: PANIC: WAL contains references to invalid pages on replica recovery

2013-02-21 Thread Heikki Linnakangas

On 19.02.2013 00:19, Maciek Sakrejda wrote:

On Mon, Feb 18, 2013 at 12:57 AM, Heikki Linnakangas
hlinnakan...@vmware.com  wrote:


On 16.02.2013 01:49, Daniel Farina wrote:


I guess that means Ubuntu (and probably Debian?) libpq-dev breaks
PG_VERSION_NUM for PGXS=1.



That obviously needs to be fixed in debian. Meanwhile, Maciek, I'd suggest
that you build PostgreSQL from sources, install it to some temporary
location, and then build xlogdump against that.


That worked, thanks. I have a working xlogdump. Any pointers as to what I
should look for? This is the contents of the pg_xlog directory:

total 49160
-rw--- 1 udrehggpif7kft postgres 16777216 Feb 15 00:00
0001003C0093
-rw--- 1 udrehggpif7kft postgres 16777216 Feb 15 00:47
0001003C0094
-rw--- 1 udrehggpif7kft postgres 16777216 Feb 15 00:49
0002003C0093
-rw--- 1 udrehggpif7kft postgres   56 Feb 15 00:49 0002.history
drwx-- 2 udrehggpif7kft postgres 4096 Feb 15 00:49 archive_status


I'd like to see the contents of the WAL, starting from the last 
checkpoint, up to the point where failover happened. In particular, any 
actions on the relation base/16385/16430, which caused the error. 
pg_controldata output on the base backup would also interesting, as well 
as the contents of backup_label file.


How long did the standby run between the base backup and the failover? 
How many WAL segments?


One more thing you could try to narrow down the error: restore from the 
base backup, and let it run up to the point of failover, but shut it 
down just before the failover with pg_ctl stop -m fast. That should 
create a restartpoint, at the latest checkpoint record. Then restart, 
and perform failover. If it still throws the same error, we know that 
the WAL record that touched the page that doesn't exist was after the 
last checkpoint.


- Heikki


--
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] new BUG: postgresql 9.2.3: very long query time

2013-02-21 Thread Jeff Janes
On Wed, Feb 20, 2013 at 5:42 AM, Claude Speed gta3u...@gmail.com wrote:
 Hi all,

 Postgresql 9.2.3 is processing my query is much longer than Postgresql
 9.1.8:
 Postgresql 9.1.8 - 2292 ms
 Postgresql 9.2.3 - 163336 ms

 I provided my query in attach and the database dump too,
 this bug is reproducible.

 Operating system: Gentoo x86_64 Linux 2.6.36

The slowness was introduced with this:

commit e2fa76d80ba571d4de8992de6386536867250474
Author: Tom Lane t...@sss.pgh.pa.us
Date:   Fri Jan 27 19:26:38 2012 -0500

Use parameterized paths to generate inner indexscans more flexibly.


Do you know of simpler queries that also exhibits this behavior?  It
would certainly make analysis of the issue easier.


Cheers,

Jeff


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs