El mar, 13-01-2009 a las 19:03 -0500, Manuel Sánchez Tirado Calderón
escribió:
>
>
> 2009/1/13 Mauro A. Morales M. <[email protected]>
> El mar, 13-01-2009 a las 15:25 -0500, Manuel Sánchez Tirado
> Calderón
> escribió:
> > insert into log_usuario values('01', '0325464', 'MSANCHEZ',
> now(),
> > '10.1.1.1')
>
>
> En mi postgresql 8.3.5, sobre un fedora 9 ...
>
> test=# CREATE TABLE log_usu
> test-# (
> test(# tipusu char(2),
> test(# inscodigo char(7),
> test(# nomusu varchar(15),
> test(# fecing timestamp,
> test(# ipacceso varchar(20)
> test(# );
> CREATE TABLE
> test=# insert into log_usu values('01', '0325464', 'MSANCHEZ',
> now(),
> '10.1.1.1');
> INSERT 0 1
> test=# select * from log_usu;
> tipusu | inscodigo | nomusu | fecing |
> ipacceso
>
> --------+-----------+----------+----------------------------+----------
> 01 | 0325464 | MSANCHEZ | 2009-01-13 20:26:40.841255 |
> 10.1.1.1
> (1 fila)
>
>
> --
> Mauro A. Morales M. http://www.opencorp.cl
> Opencorp Ltda. Ingenieria Opensource
>
>
>
> Gracias Mauro,
> Te comento que anteriormente este sistema estaba trabajando en otro
> servidor en donde funcionaba perfectamente ese tipo de "insert", tal
> como veo pasa tambien con tu prueba.
>
> Recientemente este sistema paso a otro server y recien ahi
> esta pasando esto. Es por eso que sospecho que es un tema
> con algun parametros que se configura en el POSTGRES o probablemente
> algo del time zone que esta tomando del Sistema Operativo.
> Si alguien tiene una pista de que configuraciones podria chekear ....
> se lo agradeceria mucho
Esto es lo que tengo en mi postgresql.conf
# - Locale and Formatting -
datestyle = 'iso, dmy'
#timezone = unknown # actually, defaults to TZ
environment
# setting
#timezone_abbreviations = 'Default' # Select the set of available
time zone
# abbreviations. Currently,
there are
# Default
# Australia
# India
# You can create your own file
in
# share/timezonesets/.
#extra_float_digits = 0 # min -15, max 2
#client_encoding = sql_ascii # actually, defaults to database
# encoding
# These settings are initialized by initdb, but they can be changed.
lc_messages = 'es_ES.UTF-8' # locale for system
error message
# strings
lc_monetary = 'es_ES.UTF-8' # locale for monetary
formatting
lc_numeric = 'es_ES.UTF-8' # locale for number
formatting
lc_time = 'es_ES.UTF-8' # locale for time
formatting
# default configuration for text search
default_text_search_config = 'pg_catalog.spanish'
Y el locale de la máquina
[r...@sherlock ~]# locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
Saludos,
-- Mauro
--
Mauro A. Morales M. http://www.opencorp.cl
Opencorp Ltda. Ingenieria Opensource
--
TIP 3: Si encontraste la respuesta a tu problema, publ�cala, otros te lo
agradecer�n