From: hubert depesz lubaczewski <depesz@depesz.pl>
To: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: how to alter/drop check contraint?
Date: Wed, 20 Dec 2000 14:10:56 +0100
Message-ID: <20001220141056.A22241@gruby> (raw)
the subject should be self-explanatory, but:
i have table:
create table a (b text check (length(b)<10));
and for some reason i want to drop this check or alter this to length(b)<20.
how can i do so?
or maybe using trigger in plpgsql will be better?
how to make trigger which will stop insert or update when something occurs?
depesz
--
hubert depesz lubaczewski
------------------------------------------------------------------------
najwspanialszą rzeczą jaką dało nam nowoczesne społeczeństwo,
jest niesamowita wręcz łatwość unikania kontaktów z nim ...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: depesz@depesz.pl
Subject: Re: how to alter/drop check contraint?
In-Reply-To: <20001220141056.A22241@gruby>
References: <20001220141056.A22241@gruby>
* 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