Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-17 Thread Greg Stark
Well, when a database is first initdb'd that relation is in fact 0 bytes: ::***# select pg_relation_filenode(oid) from pg_class where relname = 'pg_auth_members'; ┌──┐ │ pg_relation_filenode │ ├──┤ │12610 │ └──┘ (1 row) $

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-17 Thread Josh Berkus
On 03/17/2015 10:35 AM, Peter Geoghegan wrote: > I'm still going to get a back trace here, because it seems reasonable > to suppose that there is a Postgres bug even still - it may be that > whatever differences are in the 14.04 kernel are enough to make a > previously latent bug trip this code up.

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-17 Thread Peter Geoghegan
On Thu, Mar 12, 2015 at 5:56 PM, Andres Freund wrote: >> > Any chance that the new nodes also use a different kernel version or >> > such? >> >> They may differ, but that doesn't seem likely to be relevant, at least >> to me. > > There've been some issues with seek(END) sometimes returning the wro

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-12 Thread Peter Geoghegan
On Thu, Mar 12, 2015 at 5:56 PM, Andres Freund wrote: > So, no hot standby enabled? Right. > There've been some issues with seek(END) sometimes returning the wrong > length in the past. And I've seen a report that might indicate a similar > bug has been reintroduced. That could certainly cause s

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-12 Thread Andres Freund
On 2015-03-12 17:42:33 -0700, Peter Geoghegan wrote: > On Thu, Mar 12, 2015 at 5:21 PM, Andres Freund wrote: > > On 2015-03-12 16:42:24 -0700, Peter Geoghegan wrote: > >> We want to create a new role when this happens, for various reasons. > >> This occurs after recovery ends, but before the datab

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-12 Thread Peter Geoghegan
In a hurry right now, so unfortunately I'll need to be brief for now. On Thu, Mar 12, 2015 at 5:21 PM, Andres Freund wrote: > On 2015-03-12 16:42:24 -0700, Peter Geoghegan wrote: >> We want to create a new role when this happens, for various reasons. >> This occurs after recovery ends, but before

Re: [HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-12 Thread Andres Freund
Hi, On 2015-03-12 16:42:24 -0700, Peter Geoghegan wrote: > We want to create a new role when this happens, for various reasons. > This occurs after recovery ends, but before the database has been > "unfenced". The template code that generates various ALTER ROLE > statements in our internal provisi

[HACKERS] Bug in point releases 9.3.6 and 9.2.10?

2015-03-12 Thread Peter Geoghegan
Heroku Postgres runs provisioning code that performs certain actions on roles when creating a new "fork" of an existing database. This often causes the new fork to be on the latest point release, where the database being forked was not. We want to create a new role when this happens, for various r