From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Allie Crawford <CrawfordMA(at)churchofjesuschrist(dot)org> |
Cc: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: [Ext:] Re: Stream Replication not working |
Date: | 2022-01-11 13:28:19 |
Message-ID: | CAA4eK1L9djW=Vag5p9Lv4uaXN4E2DZ5R+6Qi+-Y3heBq4drP3g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Tue, Jan 11, 2022 at 2:12 AM Allie Crawford
<CrawfordMA(at)churchofjesuschrist(dot)org> wrote:
>
> Thank you so much for your help on this Satya. I have detailed right below the output of the query you asked me to run.
>
>
>
> Master
>
> postgresql@<master> ~>psql
>
> psql (13.5)
>
> Type "help" for help.
>
>
>
> postgresql=# select * from pg_locks;
>
> locktype | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid | mode | granted | fastpath
>
> ------------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+---------+-----------------+---------+----------
>
> relation | 16384 | 12141 | | | | | | | | 3/6715 | 2669949 | AccessShareLock | t | t
>
> virtualxid | | | | | 3/6715 | | | | | 3/6715 | 2669949 | ExclusiveLock | t | t
>
> (2 rows)
>
>
>
> postgresql=#
>
>
>
>
>
> Standby
>
> postgresql@<standby> ~>psql
>
> psql (13.5)
>
> Type "help" for help.
>
>
>
> postgresql=# select * from pg_locks;
>
> locktype | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid | mode | granted | fastpath
>
> ------------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+--------+-----------------+---------+----------
>
> relation | 16384 | 12141 | | | | | | | | 2/50 | 642064 | AccessShareLock | t | t
>
> virtualxid | | | | | 2/50 | | | | | 2/50 | 642064 | ExclusiveLock | t | t
>
> virtualxid | | | | | 1/1 | | | | | 1/0 | 17333 | ExclusiveLock | t | t
>
> (3 rows)
>
It seems both master and standby have an exclusive lock on db:16384
and relation:12141. Which is this database/relation and why is the
app/database holding a lock on it?
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | Dominique Devienne | 2022-01-11 13:33:45 | Re: DROP OWNED BY fails with #53200: ERROR: out of shared memory |
Previous Message | Pavel Stehule | 2022-01-11 13:27:34 | Re: plpgsql function problem whith creating temp table - not correctly using search_path ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Atsushi Ogawa | 2022-01-11 13:55:16 | Boyer-More-Horspool searching LIKE queries |
Previous Message | Peter Eisentraut | 2022-01-11 12:59:32 | Re: Time to drop plpython2? |