From: | "Howard Williams" <howieshouse(at)home(dot)com> |
---|---|
To: | "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: check constriaint for BLOB |
Date: | 2001-11-27 02:22:49 |
Message-ID: | HDEIKOFMNEOMJKLCNJAJOECECDAA.howieshouse@home.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks for the response, but...
I'm using data type oid - as far as I know, that's not the same thing as
byteA. Please correct me if I'm wrong.
Howie
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Aasmund Midttun
Godal
Sent: Monday, November 26, 2001 5:02 PM
To: howieshouse(at)home(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] check constriaint for BLOB
CREATE TABLE testus (
data BYTEA CHECK (octet_length(data) > 10000)
);
Perhaps?
Regards,
Aasmund.
On Mon, 26 Nov 2001 15:36:28 -0800, "news.postgresql.org"
<howieshouse(at)home(dot)com> wrote:
> Is it possible to add a constraint during "CREATE TABLE" that guarantees
> objects in a certain field will be greater than zero size?
>
> Thanks,
>
> Howie
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
Aasmund Midttun Godal
aasmund(at)godal(dot)com - http://www.godal.com/
+47 40 45 20 46
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Clift | 2001-11-27 04:28:23 | Re: [HOSTING QUESTION] - Advice on a decent PostgreSQL |
Previous Message | Tom Lane | 2001-11-27 01:25:06 | Re: Row Limit? |