Re: Log de Notice, Warnings y errores

From: Nicolás Domínguez Florit <ndomin(at)rec(dot)unicen(dot)edu(dot)ar>
To: Raul Duque <rduque(at)gerfor(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Log de Notice, Warnings y errores
Date: 2007-01-26 14:07:42
Message-ID: 45BA0B2E.4070702@rec.unicen.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#006600">
Bien gracias, pero a lo que yo me refiero es poder guardar el log que
veo por pantalla en esa ocacion. Y no tenerlo seteado siempre. Es
decir... Busco algo del estilo:<br>
Cuando hago x ejemplo un<br>
psql -f script.sql -U postgres base_prueba<br>
y aparece (por ejemplo) lo siguiente por pantalla<br>
psql:c:/temp/script.sql:12548: ERROR:&nbsp; relation "pirulito" already
exists<br>
Necesito que esta linea de error (o notice, warning) quede en un
archivo.<br>
<br>
Mmm talvez no entendi lo que me contestaste o talvez tu no habias
entendido bien mi pregunta.<br>
Muchas gracias igualmente por tu ayuda.<br>
<br>
Nicolas.<br>
<br>
Raul Duque escribi&oacute;:
<blockquote cite="mid003901c7414e$449e0650$3303a8c0(at)gerfor(dot)com(dot)co"
type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.5730.11" name="GENERATOR">
<style></style>
<div><font color="#000000" face="Arial" size="2">configura&nbsp;la sesi&oacute;n
ERROR REPORTING AND LOGGING del postgresql.conf.</font></div>
<div>&nbsp;</div>
<div><font color="#000000" face="Arial" size="2">Atentamente,</font></div>
<div>&nbsp;</div>
<div><font color="#000000" face="Arial" size="2">RAUL DUQUE</font></div>
<div><font color="#000000" face="Arial" size="2">Bogot&aacute;, Colombia</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div
style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
<a title="ndomin(at)rec(dot)unicen(dot)edu(dot)ar"
href="mailto:ndomin(at)rec(dot)unicen(dot)edu(dot)ar">Nicol&aacute;s Dom&iacute;nguez Florit</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="pgsql-es-ayuda(at)postgresql(dot)org"
href="mailto:pgsql-es-ayuda(at)postgresql(dot)org">pgsql-es-ayuda(at)postgresql(dot)org</a>
</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Friday, January 26, 2007 7:54 AM</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[pgsql-es-ayuda] Log de Notice, Warnings y errores</div>
<div><br>
</div>
Queria saber si existe la posibilidad de mandar a un archivo de texto
los notice y errores que me dan por pantalla cuando corro un script
desde la consola (por medio de psql -f ....)<br>
<br>
Probe con -o y con -L pero no obtengo lo que requiero.<br>
<br>
Parece simple pero no lo puedo obtener.<br>
<br>
Alguien sabe como?<br>
<br>
Muchas Gracias, saludos<br>
<br>
Nicolas.<br>
</blockquote>
<br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br>
believed to be clean.
<pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.17.11/652 - Release Date: 25/01/2007

</pre>
</blockquote>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 4.0 KB

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Nataly Barrios, Conectium Limited. 2007-01-26 14:10:55 Ayuda con query....
Previous Message Guido Barosio 2007-01-26 13:50:29 Re: Borrado de base de datos