From: | Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Eduard Miquel i Gavaldà <eduard(dot)miquel(at)urv(dot)net>, pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: Migración de datos atablaparticionada |
Date: | 2007-06-11 10:43:11 |
Message-ID: | 466D273F.2010703@bugs.unl.edu.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Alvaro Herrera escribió:
> Eduard Miquel i Gavaldà escribió:
>> Hola,
>> ahí va la descripción de la tabla y un par de EXPLAIN ANALYZE de
>> consultas habituales.
>>
>> CREATE TABLE mdl_log
>> (
>> id serial NOT NULL,
>> "time" int4 NOT NULL DEFAULT 0,
>> userid int4 NOT NULL DEFAULT 0,
>> ip varchar(15) NOT NULL DEFAULT ''::character varying,
>> course int4 NOT NULL DEFAULT 0,
>> module varchar(20) NOT NULL DEFAULT ''::character varying,
>> cmid int4 NOT NULL DEFAULT 0,
>> "action" varchar(15) NOT NULL DEFAULT ''::character varying,
>> url varchar(100) NOT NULL DEFAULT ''::character varying,
>> info varchar(255) NOT NULL DEFAULT ''::character varying,
>> CONSTRAINT mdl_log_pkey PRIMARY KEY (id),
>> CONSTRAINT mdl_log_cmid_check CHECK (cmid >= 0),
>> CONSTRAINT mdl_log_course_check CHECK (course >= 0),
>> CONSTRAINT mdl_log_time_check CHECK ("time" >= 0),
>> CONSTRAINT mdl_log_userid_check CHECK (userid >= 0)
>> )
>
[snip]
>
> Otra pregunta: para que tienes un "id" en una tabla de log?? Suena
> bastante inutil.
>
Y cual sería la Primary Key de la tabla?
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
---------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Martin Marques | 2007-06-11 10:45:12 | Re: Migración de datos atablaparticionada |
Previous Message | Eduard Miquel i Gavaldà | 2007-06-11 07:57:21 | Re: [pgsql-es-ayuda] Migración de datosatablaparticionada |