Re: Postgres Replaying WAL slowly
| От | Matheus de Oliveira |
|---|---|
| Тема | Re: Postgres Replaying WAL slowly |
| Дата | |
| Msg-id | CAJghg4Lq2rg7mMzRfEartAQK1c83veoW3TWroQsSvXMqBQ9h+w@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Postgres Replaying WAL slowly (Jeff Frost <jeff@pgexperts.com>) |
| Ответы |
Re: Postgres Replaying WAL slowly
|
| Список | pgsql-performance |
On Mon, Jun 30, 2014 at 4:42 PM, Jeff Frost <jeff@pgexperts.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());
SELECT relation::regclass, ...
FROM pg_locks WHERE database = (SELECT oid FROM pg_database WHERE datname = current_database());
Regards,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
В списке pgsql-performance по дате отправления: