[pgsql-ayuda] Configuracion de postgres

OCR ocano@lagente.com
Fri, 9 Mar 2001 14:19:24 -0600


----- 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