[pgsql-ayuda] Configuracion de postgres

Jose Muro jomupe@sicon.net
Mon, 12 Mar 2001 09:40:40 +0100


Buenos días.

Yo realice la instalación desde los RPM´s y cambiando lo que te dije en el
postmaster,  reiniciando el servicio las fechas trabajan en el formato que
especifique.

Pero yo tengo instalado la versión 6.5.3, quiza por eso me funcione a mi y
ati no.

Un saludo. José

PD: Desde que te conectas a Postgres ODBC, Java, PHP?

----- Original Message -----
From: "OCR" <ocano@lagente.com>
To: <pgsql-ayuda@tlali.iztacala.unam.mx>
Sent: Friday, March 09, 2001 9:19 PM
Subject: Re: [pgsql-ayuda] Configuracion de postgres


> ----- Original Message -----
> From: Jose Muro <jomupe@sicon.net>
> > Buenos días.
> >
> > No te sería muchisimo mas facil cambiar la opción del formato de fecha
en
> el
> > script de inicio del postgres en lugar de tener que recompilar el
> postgres.
> >
> > Para ello edita el archivo postgresql que en RD se encuentra en
> > /etc/rc.d/init.d y añadele la entrada -o -e
> > donde -e es la formato que quieras en este caso -e equivale a
DD-MM-YYYY.
> >
> > Un saludo. Jose Muro
>
> He intentado esto ya lo modifique el problema es que yo quiero que el
> formato Postgres|NonEuropean y los RPM's instalan el formato ISO
> (YYYY-MM-DD).
> En el manual del usuario biene lo siguiente:
>
> 1.-Setting the PGDATESTYLE environment variable. If PGDATESTYLE is set in
> the frontend environment of a client based on libpq, libpq will
> automatically set DATESTYLE to the value of PGDATESTYLE during connection
> startup.
> NO ME SIRVE POR QUE YO LO QUIERO PARA TODAS LAS CONEXXIONES, ESPECIALMENTE
> PARA LOS USUARIOS QUE VISITAN UNA PAGINA EN INTERNET.
> Running postmaster using the option -o -e to set dates to the European
> convention. Note that this affects only some combinations of date styles;
> for example the ISO style is not affected by this parameter.
> Y PRECISAMENTE SE INSTALO CON ISO
> Changing variables in src/backend/utils/init/globals.c.
> The variables in globals.c which can be changed are:
> bool EuroDates = false | true
> int DateStyle = USE_ISO_DATES | USE_POSTGRES_DATES | USE_SQL_DATES |
> USE_GERMAN_DATES
> ESTA SI ME SIRVE PERO NECESITO INSTALAR LOS FUENTES PARA RECOMPILAR.
>
> Asi que como podran ver no se ni como ya que quiero usar la instalación
con
> RPM pero ya me estoy desesperando, tal vez todo se resolveria sabiendo
como
> puedo enviarle mas opciones al postmaster. (-o DateStyle_Deseado)
> PD. El problema es que hay una aplicacion que me dejaron y usan
> especificamente el formato de fecha Postgres|NonEuropean y la verdad es
> mucho mas cansado estar investigando todas las lineas en donde esta la
> fecha.
> Mil Gracias.
>
>
> >
> > > La vez pasada tuve un problema de como cambiar el despliege de fecha
> desde
> > > psql, la solucion estribo en modificar este formato en el archivo
> > > /usr/local/pgsql/src/backend/utils/init/globals.c y despues recompilar
> el
> > > postgres. mi dida es como hago una modificacion similar si la
> instalacion
> > la
> > > realice via RPM.
> > > Saludos
>
> --------- Pie de mensaje -------------------------------------------
> Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
> Cancelar inscripcion:
> mail to: majordomo@tlali.iztacala.unam.mx
> text   : unsubscribe pgsql-ayuda
>

--------- Pie de mensaje -------------------------------------------
Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text   : unsubscribe pgsql-ayuda