Re: Ayuda Consulta de fechas

From: motum hesa <motums(at)gmail(dot)com>
To: Lista PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Ayuda Consulta de fechas
Date: 2011-07-22 22:16:50
Message-ID: CAJu20Ahp5yWNP_kBXP5=SngPqQCBO+3wMJTexjxFGmd_dcQzcQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola ya habia contestado pero no me fije que se fue a borradores el
correo, pero bueno disculpen la demora... aqui esta la salida del
comando:

>
> Muestra el \d de la tabla y qué índices tiene.
>
> --
> Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
>

Table "public.datosentrada_his"
Column | Type | Modifiers
---------------------+-----------------------------+-----------
fechaentrada | timestamp without time zone |
lat | double precision |
lng | double precision |
direccion | character varying |
entrandosaliendo | integer |
odometrototal | double precision |
hrastotalmotor | double precision |
hrastotalpto | double precision |
hrastotalralenti | double precision |
combustotalralenti | double precision |
combustotalpto | double precision |
bateria | double precision |
altitud | double precision |
factorcarga | double precision |
torque | double precision |
conexiontrailer1 | integer |
conexiontrailer2 | integer |
refpunto | integer |
refciudad | integer |
unitno | character varying(15) | not null
flota | character varying(40) | not null
importacionid | bigint | not null
viajeactivo | integer |
cro | integer |
ignicion | boolean |
pia | integer |
fechaenvio | timestamp without time zone |
fechacreacion | timestamp without time zone |
point_geom | geometry |
point_geomutm | geometry |
combustibletotal | double precision |
dkilometros | double precision |
dhoraspto | double precision |
dhorasmotor | double precision |
dcombustible | double precision |
velpromedio | double precision |
dhorasralenti | double precision | default 0
nalarmas | smallint | default 0
nfallas | smallint | default 0
nmensajes | smallint | default 0
tempmotor | double precision |
tempaceite | double precision |
presionturbo | double precision |
presionaceite | double precision |
rpm | integer |
tiempo_optimas_rpm | double precision | default 0
tiempo_retarder | double precision | default 0
dcombustibleralenti | double precision |
dcombustiblepto | double precision |
dtiempo_optimas_rpm | double precision |
dtiempo_retarder | double precision |
mrefp | double precision |
mrefc | double precision |
pendientes | smallint |
pos_gps | boolean |
minrpm | integer |
engrane_transmision | integer |
vel_max | double precision |
compre_break_dis | double precision |
cont_apli_fren | integer |
cont_ace_brusca | integer |
cont_desac_brusca | integer |
total_eng_cruise | double precision |
odom_virtual | double precision |
num_sate | integer |
vel_gps | integer |
edobatt | smallint | default 2
Indexes:
"datosentrada_his_pk" PRIMARY KEY, btree (importacionid)
"fki_importacionid_his" btree (importacionid)
"fki_vehiculo_his" btree (unitno, flota)
"fki_viajeactivo_his" btree (viajeactivo)
"ind_fecha" btree (fechacreacion DESC)
"inf_fecha_id_his" btree (fechacreacion, importacionid)
Check constraints:
"enforce_dims_point_geom" CHECK (ndims(point_geom) = 2)
"enforce_dims_point_geomutm" CHECK (ndims(point_geomutm) = 2)
"enforce_geotype_point_geom" CHECK (geometrytype(point_geom) =
'POINT'::text OR point_geom IS NULL)
"enforce_geotype_point_geomutm" CHECK (geometrytype(point_geomutm)
= 'POINT'::text OR point_geomutm IS NULL)
"enforce_srid_point_geom" CHECK (srid(point_geom) = 4326)
"enforce_srid_point_geomutm" CHECK (srid(point_geomutm) = 32614)
Foreign-key constraints:
"historico_vehiculo" FOREIGN KEY (unitno, flota) REFERENCES
vehiculos(unitno, flota) ON UPDATE CASCADE
Triggers:
pdatosentrada_his_trig BEFORE INSERT ON datosentrada_his FOR EACH
ROW EXECUTE PROCEDURE pdatosentrada_his_func()

Espero les sirva para ayudarme.. Saludos

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2011-07-22 22:57:13 Re: Ayuda Consulta de fechas
Previous Message Miguel Angel Hernandez Moreno 2011-07-22 20:26:42 Re: Webhosting con Postgres en chile