| From: | "Remi" <gemegesola(at)retemail(dot)es> | 
|---|---|
| To: | <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Error class not found | 
| Date: | 2002-05-29 19:49:19 | 
| Message-ID: | 003c01c20749$ec5b5210$0b00a8c0@RODRIGO | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Y have import a table of  PostgreSQL 7.0.3  in the  PostgreSQL 7.2.1  with
PhpPgAdmin and a file.sql below:
-----------------------------------------------------------
CREATE TABLE "mensajes" (
   "mensajeid" int4 DEFAULT nextval('mensajes_mensajeid_seq'::text) NOT
NULL,
   "usuarioid" int4 NOT NULL,
   "fechacreacion" timestamp NOT NULL,
   "asunto" varchar(255) NOT NULL,
   "cuerpo" text NOT NULL,
   CONSTRAINT "mensajes_pkey" PRIMARY KEY ("mensajeid")
);
CREATE  INDEX "mensajes_usuarioid_key" ON "mensajes" ("usuarioid");
/* --------------------------------------------------------
  Dumping data for table "mensajes"
-------------------------------------------------------- */
INSERT INTO "mensajes" ("usuarioid", "fechacreacion", "asunto", "cuerpo")
VALUES(35, 1, '2002-04-21 04:58:54+02', 'aa', 'a');
... / ...
INSERT INTO "mensajes" ("usuarioid", "fechacreacion", "asunto", "cuerpo")
VALUES(87, 9, '2002-05-23 19:14:38+02', 'Re: Mensaje de prueba', 'De remi');
-----------------------------------------------------------
The structure is :
-----------------------------------------------------------
Field               Type            Length    Not Null    Default
mensajeid        int4             4             Yes
nextval('mensajes_mensajeid_seq'::text)
usuarioid         int4             4              Yes
fechacreacion timestamptz 8              Yes
asunto            varchar        255          Yes
cuerpo           text var                         Yes
Keyname                         Unique   Primary   Field
mensajes_pkey                Yes        Yes         mensajeid
mensajes_usuarioid_key   No        No           usuarioid
-----------------------------------------------------------
When y use a INSERT query:
INSERT INTO mensajes (usuarioid, asunto, cuerpo, fechacreacion)
VALUES (35, 'sd', 'sd', '2002-05-29 21:22:34')
y have this error
ERROR:  pg_aclcheck: class "mensajes_mensajeid_seq" not found
y have this with all table width the nextval('xxx_xxx_seq'::text) option
Does any one help me please ?
Thank you
Remi
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Darren Ferguson | 2002-05-29 19:56:42 | Re: Error class not found | 
| Previous Message | Tom Lane | 2002-05-29 15:56:20 | Re: Invalid length of startup packet |