Re: vacuumdb seems not to like option -j when run from crontab

From: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: vacuumdb seems not to like option -j when run from crontab
Date: 2023-12-04 16:13:00
Message-ID: 2ad37caf6e1554fc6a12830fbc6e01a35adcd0e3.camel@lists.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message kaido vaikla 2023-12-04 16:19:49 Re: vacuumdb seems not to like option -j when run from crontab
Previous Message Ron Johnson 2023-12-04 16:07:25 vacuumdb seems not to like option -j when run from crontab