pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: vacuumdb seems not to like option -j when run from crontab
Date: Mon, 04 Dec 2023 08:13:00 -0800
Message-ID: <2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca> (raw)
In-Reply-To: <CANzqJaAbSRD1aPtkL_5bj16Gi77Hi=-eVqDVThGuBa4Sxgbn1w@mail.gmail.com>
References: <CANzqJaAbSRD1aPtkL_5bj16Gi77Hi=-eVqDVThGuBa4Sxgbn1w@mail.gmail.com>

On Mon, 2023-12-04 at 11:07 -0500, Ron Johnson wrote:
> PG 9.6.24 (Yes, it's EOL.)
> 
> When running "vacuumdb -p5433 -j4 --analyze tap_d" from a bash
> prompt, it works as expected:
> $ vacuumdb -p5433 -j4 --analyze tap_d
> vacuumdb: vacuuming database "tap_d"
> 
> But not when running from crontab:
> vacuumdb -p5433 -j4 --analyze tap_d
> vacuumdb: invalid option -- 'j'
> Try "vacuumdb --help" for more information.
> 
> Obviously I'm missing something, but don't see what it is. 
> Attached is the script it runs from.
> 

Is your user and PATH the same? ie. are you running the same vacuumdb
executable?

view thread (5+ messages)  latest in thread

Message-ID: <2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca>
Permalink:  ../2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca/
Also on:    postgresql.org/message-id/2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ahodgson@lists.simkin.ca
  Subject: Re: vacuumdb seems not to like option -j when run from crontab
  In-Reply-To: <2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca>
  References: <CANzqJaAbSRD1aPtkL_5bj16Gi77Hi=-eVqDVThGuBa4Sxgbn1w@mail.gmail.com> <2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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