Lists: | pgsql-patches |
---|
From: | Rod Taylor <rbt(at)rbt(dot)ca> |
---|---|
To: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Domain Check Constraints |
Date: | 2002-11-08 19:54:26 |
Message-ID: | 1036785266.15373.297.camel@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Regress:
test geometry ... FAILED
But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
psql needs some additions to display the constraints, though I'm not
sure what at the moment.
Anyway, below is a sample:
a=# create domain i as integer not null check (value > 15 or value = 5)
check(value < 18);
CREATE DOMAIN
a=# select 7::i;
ERROR: Domain $1 constraint i failed
a=# select 5::i;
i
---
5
(1 row)
a=# select 15::i;
ERROR: Domain $1 constraint i failed
a=# select 20::i;
ERROR: Domain $2 constraint i failed
a=# select 17::i;
i
----
17
(1 row)
a=#
--
Rod Taylor
Attachment | Content-Type | Size |
---|---|---|
domain.patch | text/plain | 65.8 KB |
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-13 02:23:28 |
Message-ID: | 200211130223.gAD2NSF12240@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Rod, do you want this added to the patches queue?
---------------------------------------------------------------------------
Rod Taylor wrote:
> Regress:
> test geometry ... FAILED
>
> But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
>
>
> psql needs some additions to display the constraints, though I'm not
> sure what at the moment.
>
>
> Anyway, below is a sample:
>
> a=# create domain i as integer not null check (value > 15 or value = 5)
> check(value < 18);
> CREATE DOMAIN
> a=# select 7::i;
> ERROR: Domain $1 constraint i failed
> a=# select 5::i;
> i
> ---
> 5
> (1 row)
>
> a=# select 15::i;
> ERROR: Domain $1 constraint i failed
> a=# select 20::i;
> ERROR: Domain $2 constraint i failed
> a=# select 17::i;
> i
> ----
> 17
> (1 row)
>
> a=#
>
> --
> Rod Taylor
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Rod Taylor <rbt(at)rbt(dot)ca> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-13 02:34:59 |
Message-ID: | 1037154902.17303.6.camel@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
On Tue, 2002-11-12 at 21:23, Bruce Momjian wrote:
>
> Rod, do you want this added to the patches queue?
Please do.
> > Anyway, below is a sample:
> >
> > a=# create domain i as integer not null check (value > 15 or value = 5)
--
Rod Taylor
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-13 02:40:47 |
Message-ID: | 200211130240.gAD2elT14100@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Rod Taylor wrote:
> Regress:
> test geometry ... FAILED
>
> But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
>
>
> psql needs some additions to display the constraints, though I'm not
> sure what at the moment.
>
>
> Anyway, below is a sample:
>
> a=# create domain i as integer not null check (value > 15 or value = 5)
> check(value < 18);
> CREATE DOMAIN
> a=# select 7::i;
> ERROR: Domain $1 constraint i failed
> a=# select 5::i;
> i
> ---
> 5
> (1 row)
>
> a=# select 15::i;
> ERROR: Domain $1 constraint i failed
> a=# select 20::i;
> ERROR: Domain $2 constraint i failed
> a=# select 17::i;
> i
> ----
> 17
> (1 row)
>
> a=#
>
> --
> Rod Taylor
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Rod Taylor <rbt(at)rbt(dot)ca> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-14 03:53:15 |
Message-ID: | 1037245996.19543.30.camel@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Sorry Bruce, seems I've missed a bit.
pg_dump for domain constraints.
On Tue, 2002-11-12 at 21:40, Bruce Momjian wrote:
>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
> http://momjian.postgresql.org/cgi-bin/pgpatches
>
> I will try to apply it within the next 48 hours.
>
> ---------------------------------------------------------------------------
>
>
> Rod Taylor wrote:
> > Regress:
> > test geometry ... FAILED
> >
> > But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
> >
> >
> > psql needs some additions to display the constraints, though I'm not
> > sure what at the moment.
> >
> >
> > Anyway, below is a sample:
> >
> > a=# create domain i as integer not null check (value > 15 or value = 5)
> > check(value < 18);
> > CREATE DOMAIN
> > a=# select 7::i;
> > ERROR: Domain $1 constraint i failed
> > a=# select 5::i;
> > i
> > ---
> > 5
> > (1 row)
> >
> > a=# select 15::i;
> > ERROR: Domain $1 constraint i failed
> > a=# select 20::i;
> > ERROR: Domain $2 constraint i failed
> > a=# select 17::i;
> > i
> > ----
> > 17
> > (1 row)
> >
> > a=#
> >
> > --
> > Rod Taylor
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Rod Taylor
Attachment | Content-Type | Size |
---|---|---|
domain_pgdump.patch | application/octet-stream | 0 bytes |
From: | Rod Taylor <rbt(at)rbt(dot)ca> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-14 03:59:59 |
Message-ID: | 1037246399.19543.34.camel@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Ugh.. A non-empty file this time.
On Wed, 2002-11-13 at 22:53, Rod Taylor wrote:
> Sorry Bruce, seems I've missed a bit.
>
> pg_dump for domain constraints.
>
>
> On Tue, 2002-11-12 at 21:40, Bruce Momjian wrote:
> >
> > Your patch has been added to the PostgreSQL unapplied patches list at:
> >
> > http://momjian.postgresql.org/cgi-bin/pgpatches
> >
> > I will try to apply it within the next 48 hours.
> >
> > ---------------------------------------------------------------------------
> >
> >
> > Rod Taylor wrote:
> > > Regress:
> > > test geometry ... FAILED
> > >
> > > But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
> > >
> > >
> > > psql needs some additions to display the constraints, though I'm not
> > > sure what at the moment.
> > >
> > >
> > > Anyway, below is a sample:
> > >
> > > a=# create domain i as integer not null check (value > 15 or value = 5)
> > > check(value < 18);
> > > CREATE DOMAIN
> > > a=# select 7::i;
> > > ERROR: Domain $1 constraint i failed
> > > a=# select 5::i;
> > > i
> > > ---
> > > 5
> > > (1 row)
> > >
> > > a=# select 15::i;
> > > ERROR: Domain $1 constraint i failed
> > > a=# select 20::i;
> > > ERROR: Domain $2 constraint i failed
> > > a=# select 17::i;
> > > i
> > > ----
> > > 17
> > > (1 row)
> > >
> > > a=#
> > >
> > > --
> > > Rod Taylor
> >
> > [ Attachment, skipping... ]
> >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Don't 'kill -9' the postmaster
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> > + If your life is a hard drive, | 13 Roberts Road
> > + Christ can be your backup. | Newtown Square, Pennsylvania 19073
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
> --
> Rod Taylor
> ----
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
--
Rod Taylor
Attachment | Content-Type | Size |
---|---|---|
domain_pgdump.patch | text/x-patch | 1.7 KB |
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-14 04:57:19 |
Message-ID: | 200211140457.gAE4vJv01798@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Replaces older patch.
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Rod Taylor wrote:
> Ugh.. A non-empty file this time.
>
>
> On Wed, 2002-11-13 at 22:53, Rod Taylor wrote:
> > Sorry Bruce, seems I've missed a bit.
> >
> > pg_dump for domain constraints.
> >
> >
> > On Tue, 2002-11-12 at 21:40, Bruce Momjian wrote:
> > >
> > > Your patch has been added to the PostgreSQL unapplied patches list at:
> > >
> > > http://momjian.postgresql.org/cgi-bin/pgpatches
> > >
> > > I will try to apply it within the next 48 hours.
> > >
> > > ---------------------------------------------------------------------------
> > >
> > >
> > > Rod Taylor wrote:
> > > > Regress:
> > > > test geometry ... FAILED
> > > >
> > > > But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
> > > >
> > > >
> > > > psql needs some additions to display the constraints, though I'm not
> > > > sure what at the moment.
> > > >
> > > >
> > > > Anyway, below is a sample:
> > > >
> > > > a=# create domain i as integer not null check (value > 15 or value = 5)
> > > > check(value < 18);
> > > > CREATE DOMAIN
> > > > a=# select 7::i;
> > > > ERROR: Domain $1 constraint i failed
> > > > a=# select 5::i;
> > > > i
> > > > ---
> > > > 5
> > > > (1 row)
> > > >
> > > > a=# select 15::i;
> > > > ERROR: Domain $1 constraint i failed
> > > > a=# select 20::i;
> > > > ERROR: Domain $2 constraint i failed
> > > > a=# select 17::i;
> > > > i
> > > > ----
> > > > 17
> > > > (1 row)
> > > >
> > > > a=#
> > > >
> > > > --
> > > > Rod Taylor
> > >
> > > [ Attachment, skipping... ]
> > >
> > > >
> > > > ---------------------------(end of broadcast)---------------------------
> > > > TIP 4: Don't 'kill -9' the postmaster
> > >
> > > --
> > > Bruce Momjian | http://candle.pha.pa.us
> > > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> > > + If your life is a hard drive, | 13 Roberts Road
> > > + Christ can be your backup. | Newtown Square, Pennsylvania 19073
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Don't 'kill -9' the postmaster
> > >
> > --
> > Rod Taylor
> > ----
> >
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> --
> Rod Taylor
[ Attachment, skipping... ]
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-15 02:49:30 |
Message-ID: | 200211150249.gAF2nVv23204@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Patch applied. Thanks.
---------------------------------------------------------------------------
Rod Taylor wrote:
> Regress:
> test geometry ... FAILED
>
> But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
>
>
> psql needs some additions to display the constraints, though I'm not
> sure what at the moment.
>
>
> Anyway, below is a sample:
>
> a=# create domain i as integer not null check (value > 15 or value = 5)
> check(value < 18);
> CREATE DOMAIN
> a=# select 7::i;
> ERROR: Domain $1 constraint i failed
> a=# select 5::i;
> i
> ---
> 5
> (1 row)
>
> a=# select 15::i;
> ERROR: Domain $1 constraint i failed
> a=# select 20::i;
> ERROR: Domain $2 constraint i failed
> a=# select 17::i;
> i
> ----
> 17
> (1 row)
>
> a=#
>
> --
> Rod Taylor
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Domain Check Constraints |
Date: | 2002-11-15 02:52:18 |
Message-ID: | 200211150252.gAF2qIV23700@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Patch applied. Thanks.
---------------------------------------------------------------------------
Rod Taylor wrote:
> Ugh.. A non-empty file this time.
>
>
> On Wed, 2002-11-13 at 22:53, Rod Taylor wrote:
> > Sorry Bruce, seems I've missed a bit.
> >
> > pg_dump for domain constraints.
> >
> >
> > On Tue, 2002-11-12 at 21:40, Bruce Momjian wrote:
> > >
> > > Your patch has been added to the PostgreSQL unapplied patches list at:
> > >
> > > http://momjian.postgresql.org/cgi-bin/pgpatches
> > >
> > > I will try to apply it within the next 48 hours.
> > >
> > > ---------------------------------------------------------------------------
> > >
> > >
> > > Rod Taylor wrote:
> > > > Regress:
> > > > test geometry ... FAILED
> > > >
> > > > But I'm using FreeBSD 4.7 RELEASE (PostgreSQL 7.4-devel)
> > > >
> > > >
> > > > psql needs some additions to display the constraints, though I'm not
> > > > sure what at the moment.
> > > >
> > > >
> > > > Anyway, below is a sample:
> > > >
> > > > a=# create domain i as integer not null check (value > 15 or value = 5)
> > > > check(value < 18);
> > > > CREATE DOMAIN
> > > > a=# select 7::i;
> > > > ERROR: Domain $1 constraint i failed
> > > > a=# select 5::i;
> > > > i
> > > > ---
> > > > 5
> > > > (1 row)
> > > >
> > > > a=# select 15::i;
> > > > ERROR: Domain $1 constraint i failed
> > > > a=# select 20::i;
> > > > ERROR: Domain $2 constraint i failed
> > > > a=# select 17::i;
> > > > i
> > > > ----
> > > > 17
> > > > (1 row)
> > > >
> > > > a=#
> > > >
> > > > --
> > > > Rod Taylor
> > >
> > > [ Attachment, skipping... ]
> > >
> > > >
> > > > ---------------------------(end of broadcast)---------------------------
> > > > TIP 4: Don't 'kill -9' the postmaster
> > >
> > > --
> > > Bruce Momjian | http://candle.pha.pa.us
> > > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> > > + If your life is a hard drive, | 13 Roberts Road
> > > + Christ can be your backup. | Newtown Square, Pennsylvania 19073
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Don't 'kill -9' the postmaster
> > >
> > --
> > Rod Taylor
> > ----
> >
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> --
> Rod Taylor
[ Attachment, skipping... ]
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073