pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedcannot execute VACUUM during recovery
4+ messages / 3 participants
[nested] [flat]
* cannot execute VACUUM during recovery
@ 2019-02-27 14:43 github kran <githubkran@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: github kran @ 2019-02-27 14:43 UTC (permalink / raw)
To: pgsql-general
Hello Team,
We are using a PostgreSQL 9.6 and seeing the below error while trying to
run a VACUUM on one of our live tables running in Production. We wanted to
clean up some DEAD tuples on the table.
*Command*: VACUUM (ANALYZE,VERBOSE) table_name.
ERROR: cannot execute VACUUM during recovery
Thanks
Kranthi
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: cannot execute VACUUM during recovery
@ 2019-02-27 18:39 Stephen Eilert <contact@stepheneilert.com>
parent: github kran <githubkran@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Eilert @ 2019-02-27 18:39 UTC (permalink / raw)
To: pgsql-general; github kran <githubkran@gmail.com>
Are you running Vacuum on the slave node? It has to run on the master.
Thanks,
– Stephen
On Feb 27, 2019, 6:43 AM -0800, github kran <githubkran@gmail.com>, wrote:
> Hello Team,
>
> We are using a PostgreSQL 9.6 and seeing the below error while trying to run a VACUUM on one of our live tables running in Production. We wanted to clean up some DEAD tuples on the table.
>
>
> Command: VACUUM (ANALYZE,VERBOSE) table_name.
>
> ERROR: cannot execute VACUUM during recovery
>
> Thanks
> Kranthi
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: cannot execute VACUUM during recovery
@ 2019-02-28 02:29 Michael Paquier <michael@paquier.xyz>
parent: Stephen Eilert <contact@stepheneilert.com>
1 sibling, 0 replies; 4+ messages in thread
From: Michael Paquier @ 2019-02-28 02:29 UTC (permalink / raw)
To: Stephen Eilert <contact@stepheneilert.com>; +Cc: pgsql-general; github kran <githubkran@gmail.com>
On Wed, Feb 27, 2019 at 10:39:10AM -0800, Stephen Eilert wrote:
> Are you running Vacuum on the slave node? It has to run on the master.
VACUUM performs an equivalent write activity so it has to be
restricted. ANALYZE can work though.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: cannot execute VACUUM during recovery
@ 2019-03-02 18:46 github kran <githubkran@gmail.com>
parent: Stephen Eilert <contact@stepheneilert.com>
1 sibling, 0 replies; 4+ messages in thread
From: github kran @ 2019-03-02 18:46 UTC (permalink / raw)
To: Stephen Eilert <contact@stepheneilert.com>; +Cc: pgsql-general
On Wed, Feb 27, 2019 at 12:39 PM Stephen Eilert <contact@stepheneilert.com>
wrote:
> Are you running Vacuum on the slave node? It has to run on the master.
>
> Thanks,
>
> – Stephen
>
Thanks Stephen for your advice Iam running the VACUUM command from 2 of
the linux instances using the below command. We were running some scripts
from these linux boxes and surprised to see 1 works the other does not so
wondering why does it happen.
* Command:* *VACUUM VERBOSE myTableTest;*
1) Running from Linux Instance1
Command Iam running -> psql -h clusterName -U myUserName -d myPostgresDB
There is no .pgpass setup on this linux instance so I had to manually enter
the password here. VACUUM on the table Iam running does not work and throws
an error as ERROR: cannot execute VACUUM during recovery
2) Running from Linux Instance2
Command Iam running -> psql -d myPostgresDB -h clusterName -U myUserName
This option had a .pgpass file at the root in this linux instance and I did
not pass any password here, the
*VACUUM on the table Iam running works.*
*pgpass is setup here and contains
-> clusterName:5432:myPostgresDB:myUserName:myDBPassword*
Thanks
- Kran.
> On Feb 27, 2019, 6:43 AM -0800, github kran <githubkran@gmail.com>, wrote:
>
> Hello Team,
>
> We are using a PostgreSQL 9.6 and seeing the below error while trying to
> run a VACUUM on one of our live tables running in Production. We wanted to
> clean up some DEAD tuples on the table.
>
>
> *Command*: VACUUM (ANALYZE,VERBOSE) table_name.
>
> ERROR: cannot execute VACUUM during recovery
>
> Thanks
> Kran
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-03-02 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-27 14:43 cannot execute VACUUM during recovery github kran <githubkran@gmail.com>
2019-02-27 18:39 ` Stephen Eilert <contact@stepheneilert.com>
2019-02-28 02:29 ` Michael Paquier <michael@paquier.xyz>
2019-03-02 18:46 ` github kran <githubkran@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox