pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedusing vacuumdb in crontab
3+ messages / 2 participants
[nested] [flat]
* using vacuumdb in crontab
@ 2003-11-17 10:53 Cris Carampa <cris119@operamail.com>
2003-11-18 07:57 ` Re: using vacuumdb in crontab Cris Carampa <cris119@operamail.com>
2003-11-19 09:34 ` Re: using vacuumdb in crontab Raquel Vieira <raquel.vieira@ent.efacec.pt>
0 siblings, 2 replies; 3+ messages in thread
From: Cris Carampa @ 2003-11-17 10:53 UTC (permalink / raw)
To: pgsql-admin
Sorry if this is a naive question. I'm using postgresql 7.2 on Linux
with password authentication. I wish to issue a vaccumdb command every
night via crontab. The problem is that vacuumdb always prompts for a
password. How can I pass the password to vacuumdb without having to
manually type it?
Kind regards,
--
Cris Carampa (spamto:cris119@operamail.com)
"Poveri fanatici comunisti, noglobal e affetti dalla sindrome
anti-microsoft" (gli utenti Linux secondo un poster di ICOD)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: using vacuumdb in crontab
2003-11-17 10:53 using vacuumdb in crontab Cris Carampa <cris119@operamail.com>
@ 2003-11-18 07:57 ` Cris Carampa <cris119@operamail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Cris Carampa @ 2003-11-18 07:57 UTC (permalink / raw)
To: pgsql-admin
Cris Carampa wrote:
> Sorry if this is a naive question. I'm using postgresql 7.2 on Linux
> with password authentication. I wish to issue a vaccumdb command every
> night via crontab. The problem is that vacuumdb always prompts for a
> password. How can I pass the password to vacuumdb without having to
> manually type it?
Sorry. Problem solved.
export PGPASSWORD=<passwd>
Kind regards,
--
Cris Carampa (spamto:cris119@operamail.com)
"Poveri fanatici comunisti, noglobal e affetti dalla sindrome
anti-microsoft" (gli utenti Linux secondo un poster di ICOD)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: using vacuumdb in crontab
2003-11-17 10:53 using vacuumdb in crontab Cris Carampa <cris119@operamail.com>
@ 2003-11-19 09:34 ` Raquel Vieira <raquel.vieira@ent.efacec.pt>
1 sibling, 0 replies; 3+ messages in thread
From: Raquel Vieira @ 2003-11-19 09:34 UTC (permalink / raw)
To: pgsql-admin
I'm using the command vaccumdb like this:
su - postgres -c "vacuumdb AgenteSIP"
I don't need to introduce the password for postgres.
I think thos is all you need.
Raquel Vieira
On Monday 17 November 2003 10:53 am, Cris Carampa wrote:
> Sorry if this is a naive question. I'm using postgresql 7.2 on Linux
> with password authentication. I wish to issue a vaccumdb command every
> night via crontab. The problem is that vacuumdb always prompts for a
> password. How can I pass the password to vacuumdb without having to
> manually type it?
>
> Kind regards,
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-11-19 09:34 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-17 10:53 using vacuumdb in crontab Cris Carampa <cris119@operamail.com>
2003-11-18 07:57 ` Cris Carampa <cris119@operamail.com>
2003-11-19 09:34 ` Raquel Vieira <raquel.vieira@ent.efacec.pt>
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