pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Implementing standard SQL's DOMAIN constraint [RESOLVED]
Date: Wed, 2 Jan 2019 12:13:34 -0600
Message-ID: <284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1901021004190.20959@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1901020905410.20959@salmo.appl-ecosys.com>
	<CAKFQuwbdtPmDR52TBX1EENEbYV2w02GzB1K5z_1O-r2ukfo4Kg@mail.gmail.com>
	<alpine.LNX.2.20.1901020943560.20959@salmo.appl-ecosys.com>
	<CAKFQuwb30m1-d35As74bFL8eWxg0oGN7YLW1443P-ZbTPG=-Wg@mail.gmail.com>
	<alpine.LNX.2.20.1901020956260.20959@salmo.appl-ecosys.com>
	<CAKFQuwY01E+8jfTtEZFzS4iXX1CNac3mWkVg1bOuop4CUVLEWw@mail.gmail.com>
	<alpine.LNX.2.20.1901021004190.20959@salmo.appl-ecosys.com>

On 1/2/19 12:05 PM, Rich Shepard wrote:
> On Wed, 2 Jan 2019, David G. Johnston wrote:
>
>> You add the create domain command once before any objects that make use of
>> it.
>
> David,
>
>   This is the answer I sought: postgres supports the create domain command.
> I did not see this in your first response.

Note that a CHECK constraint with 50 items is a *Very Bad Idea*, since 
changing such a constraint is very painful.  Use a FK constraint instead.

-- 
Angular momentum makes the world go 'round.

view thread (9+ messages)  latest in thread

Message-ID: <284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.com>
Permalink:  ../284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.com/
Also on:    postgresql.org/message-id/284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.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 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-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Implementing standard SQL's DOMAIN constraint [RESOLVED]
  In-Reply-To: <284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.com>
  References: <alpine.LNX.2.20.1901020905410.20959@salmo.appl-ecosys.com> <CAKFQuwbdtPmDR52TBX1EENEbYV2w02GzB1K5z_1O-r2ukfo4Kg@mail.gmail.com> <alpine.LNX.2.20.1901020943560.20959@salmo.appl-ecosys.com> <CAKFQuwb30m1-d35As74bFL8eWxg0oGN7YLW1443P-ZbTPG=-Wg@mail.gmail.com> <alpine.LNX.2.20.1901020956260.20959@salmo.appl-ecosys.com> <CAKFQuwY01E+8jfTtEZFzS4iXX1CNac3mWkVg1bOuop4CUVLEWw@mail.gmail.com> <alpine.LNX.2.20.1901021004190.20959@salmo.appl-ecosys.com> <284b6b1d-3a8f-f0a6-8446-eaf48174a565@gmail.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