Mensajes de error en psql

From: "Roberto Guevara" <cygnus2k(at)gmail(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Mensajes de error en psql
Date: 2008-11-27 20:28:09
Message-ID: 57650fe50811271228w6bd425a6pbac4ceedd5f7cd1e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola a todos. Tengo un servidor dedicado a postgres bastante grande, pero
cuando hago una consulta desde un cliente psql 7.3 al motor 8.43 en medio
de la consulta me tira estos mensajes:

...
server sent data ("D" message) without prior row description ("T" message)
N-0 server sent binary data ("B" message) without prior row description
("T" message)
...

y la consulta se tarda una barbaridad. Lo extraño son esos mensajes que
googleando un poco a casi nadie le salio. Hay algun tipo de error en la
transmision?
El cliente esta en un servidor con una placa de 1Gb dedicada para el
servidor del motor. El servidor Postgres tiene 2 de estos:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 3040 @ 1.86GHz
stepping : 2
cpu MHz : 1600.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl est tm2 xtpr
bogomips : 3732.98

Memoria de 4gb y un disco SCSI de 1 Terabyte :
05:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1064ET
PCI-Express Fusion-MPT SAS (rev 02)

El motor tiene esta configuracion:

max_connections = 300
# - Memory -
shared_buffers = 2048MB # min 128kB or max_connections*16kB
temp_buffers = 8MB # min 800kB
max_prepared_transactions = 0 # can be 0 or more
work_mem = 16MB # min 64kB 1MB 162MB
maintenance_work_mem = 16MB # min 1MB 16MB
# - Free Space Map -
max_fsm_pages = 4000000 # min max_fsm_relations*16, 6 bytes
each
max_fsm_relations = 5000 # min 100, ~70 bytes each

Lo demas casi no lo toque.
La tabla que consulte tiene 11.130.525 de registros de esta estructura
Columna | Tipo | Modificadores
----------+---------------+---------------
fctes | character(2) | not null
fcfec | date | not null
fccam01 | character(10) | not null
fccam04 | character(10) | not null
fccam05 | character(10) | not null
fccam06 | character(10) | not null
fccam07 | character(10) | not null
fccam08 | character(10) | not null
fccam09 | character(10) | not null
fccam10 | character(10) | not null
fccam11 | character(10) | not null
fccam12 | character(10) | not null
fccam13 | character(10) | not null
fccam14 | character(10) | not null
fccam15 | character(10) | not null
fccant01 | numeric(15,2) | default 0.0
fccant02 | numeric(15,2) | default 0.0
fccant03 | numeric(15,2) | default 0.0
fccant04 | numeric(15,2) | default 0.0
fccant05 | numeric(15,2) | default 0.0
fccant06 | numeric(15,2) | default 0.0
fccant07 | numeric(15,2) | default 0.0
fccant08 | numeric(15,2) | default 0.0
fccant09 | numeric(15,2) | default 0.0
fccant10 | numeric(15,2) | default 0.0
cargao3 | numeric(1,0) | default 0
borro | numeric(1,0) | default 0
fccam16 | character(10) |
fccam17 | character(10) |

El tema qeu actualizando las estadisticas y todo localmente se tarda 1
minuto y medio en devolver un count filtrado. Y por el cliente traer los
datos es muiy muy lento.
Hay algo en mi configuracion que este mal? Los errores del psql son algo?
Ante todo muchas gracias por escucharme.
Saludos
Roberto Guevara

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2008-11-27 20:34:11 Re: Mensajes de error en psql
Previous Message Javier Chávez B. 2008-11-27 16:55:31 Re: contar cuantas veces aparec cada elemento del resultado