Re: Postgres Replaying WAL slowly

From: Jeff Frost <jeff(at)pgexperts(dot)com>
To: Matheus de Oliveira <matioli(dot)matheus(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Soni M <diptatapa(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Postgres Replaying WAL slowly
Date: 2014-06-30 19:57:56
Message-ID: B22B06CF-2BC0-4AB6-8E3C-FACDF8193F23@pgexperts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On Jun 30, 2014, at 12:54 PM, Matheus de Oliveira <matioli(dot)matheus(at)gmail(dot)com> wrote:

>
> On Mon, Jun 30, 2014 at 4:42 PM, Jeff Frost <jeff(at)pgexperts(dot)com> wrote:
> And if you go fishing in pg_class for any of the oids, you don't find anything:
>
> That is probably because you are connected in the wrong database. Once you connect to the database of interest, you don't even need to query pg_class, just cast relation attribute to regclass:
>
> SELECT relation::regclass, ...
> FROM pg_locks WHERE database = (SELECT oid FROM pg_database WHERE datname = current_database());
>

Yah, i thought about that too, but verified I am in the correct DB. Just for clarity sake:

SELECT relation::regclass
FROM pg_locks WHERE database = (SELECT oid FROM pg_database WHERE datname = current_database()) and mode = 'AccessExclusiveLock';

relation
------------

3245508214
3245508273
3245508272
3245508257
3245508469
3245508274
3245508373
3245508468
3245508210
3245508463
3245508205
3245508260
3245508265
3245508434
(16 rows)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2014-06-30 20:15:23 Re: Postgres Replaying WAL slowly
Previous Message Matheus de Oliveira 2014-06-30 19:54:36 Re: Postgres Replaying WAL slowly