Received: from inf.ufsm.br (mailhost.inf.ufsm.br [200.18.42.6]) by postgresql.org (Postfix) with SMTP id 178704760BE for ; Wed, 6 Mar 2002 10:15:59 -0500 (EST) Received: (qmail 41878 invoked by uid 2003); 6 Mar 2002 12:08:45 -0300 Message-ID: <20020306150845.39034.qmail@inf.ufsm.br> From: "Daniel Ordobas Bortolas" To: pgsql-sql@postgresql.org Subject: simple problem Date: Wed, 06 Mar 2002 15:08:45 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archive-Number: 200203/65 X-Sequence-Number: 6947 Hello! I am having problems creating a table and i'd like some help. -->create table loco( id_loco int4 not null, primary key (id_loco), check( (select count(*) from loco ) < 3 ) ); I guess the statment is right, but when: ->insert into loco values(1); the result is: ERROR: ExecEvalExpr: unknown expression type 108 How can I fix this problem? Thanks. Daniel Bortolas.