Re: Error class not found

From: Darren Ferguson <darren(at)crystalballinc(dot)com>
To: Remi <gemegesola(at)retemail(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error class not found
Date: 2002-05-29 19:56:42
Message-ID: Pine.LNX.4.10.10205291556250.2469-100000@thread.crystalballinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The sequence does not exist. Create the sequence and it will be fine

Darren Ferguson

On Wed, 29 May 2002, Remi wrote:

> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jerason Banes 2002-05-29 20:06:02 Re: Error class not found
Previous Message Remi 2002-05-29 19:49:19 Error class not found