From: Jim Nasby <jnasby@pervasive.com>
To: Nicola Mauri <Nicola.Mauri@saga.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: Getting rid of postgres output
Date: Tue, 8 Aug 2006 11:48:13 -0500
Message-ID: <EFDEA163-DD55-4398-85F6-B60E5A2EE2F4@pervasive.com> (raw)
In-Reply-To: <OFBA5015CF.3E3EC482-ONC12571C3.004A9520-C12571C3.004CEFA0@saga.it>
References: <OFBA5015CF.3E3EC482-ONC12571C3.004A9520-C12571C3.004CEFA0@saga.it>
First, you need to upgrade to 8.1.4.
You can redirect STDOUT to /dev/null. Error messages will be sent to
STDERR.
On Aug 7, 2006, at 9:00 AM, Nicola Mauri wrote:
> I scheduled a dump between two databases, via network:
>
> pg_dump --clean -U postgres mydb | psql -q -h remote_host -d mydb -
> U postgres
>
> I'd like to have no output being generated, unless an error
> condition occurs, so that crond will email me only when something
> goes really wrong.
> Unfortunately I'm getting this output:
>
> setval
> --------
> 551776
> (1 row)
>
> setval
> --------
> 340537
> (1 row)
>
> setval
> --------
> 10411
> (1 row)
>
> and so on........
> It seems to be related to some sequences recently added to the
> database. Actually we are getting one 'setval' line for each
> sequence defined.
>
> Does anyone know how to get rid of this output?
> Simply redirecting output is not a great idea, as we may loose some
> precious error messages too; so I think we should prevent this
> messages to being generate at all.
> (Postgres 8.1.3 on RHEL4)
>
> Thank You!
> Nicola
>
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
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-admin@postgresql.org
Cc: jnasby@pervasive.com, Nicola.Mauri@saga.it
Subject: Re: Getting rid of postgres output
In-Reply-To: <EFDEA163-DD55-4398-85F6-B60E5A2EE2F4@pervasive.com>
References: <OFBA5015CF.3E3EC482-ONC12571C3.004A9520-C12571C3.004CEFA0@saga.it> <EFDEA163-DD55-4398-85F6-B60E5A2EE2F4@pervasive.com>
* 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