pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Daniel Ordobas Bortolas <bortolas@inf.UFSM.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: simple problem
Date: Wed, 6 Mar 2002 10:20:42 -0800 (PST)
Message-ID: <20020306101854.E8417-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020306150845.39034.qmail@inf.ufsm.br>

On Wed, 6 Mar 2002, Daniel Ordobas Bortolas wrote:

>
> 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 ) );

IIRC, check constraints with subselects are not currently supported.
You can make triggers that do the check for you.





view thread (10+ messages)  latest in thread

Message-ID: <20020306101854.E8417-100000@megazone23.bigpanda.com>
Permalink:  ../20020306101854.E8417-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020306101854.E8417-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, bortolas@inf.UFSM.br
  Subject: Re: simple problem
  In-Reply-To: <20020306101854.E8417-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox