Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvohc-0007Cq-LT for pgsql-docs@arkaria.postgresql.org; Wed, 05 Apr 2017 17:26:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvohc-0002Kz-82 for pgsql-docs@arkaria.postgresql.org; Wed, 05 Apr 2017 17:26:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvohb-0002Kq-Vj for pgsql-docs@postgresql.org; Wed, 05 Apr 2017 17:26:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvohZ-0000gs-CB for pgsql-docs@postgresql.org; Wed, 05 Apr 2017 17:26:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4CC0520636; Wed, 5 Apr 2017 13:26:35 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 05 Apr 2017 13:26:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=k5qJKsGiYvIc6cj0QTimAr595eDqbsSspibQkRleeeo=; b=p48yabh+ lLkv+YG7dnZziQlGdX9NzyKkUOoGx0KCcRDOnBYt6rbESXiD/bfvnVh06ToTA8J/ 0yQ13OHICMVwEQ0p3CRxyVQ+0x1w2Qn1Xkvrbl/X/eITxa+8ykmzzbgvCSXZM4cp 0x78PQyKRMJ+qlV49FItMbxLN9BftSAz04o6/X+xqXPv3dxnPFfhA/2dIBWrzo1M G2nf3+kiK4pralou94JfDg4fkSg1YydQu+QxQC7jc2gWMNG22nBa3yajYlH163Ti 2GVHSpdbNRw83swbDSPp6wBpzwhfvDEJcy6B547YcO2eQ3rlL6yXvlb5O1d2ODSQ 5G4JLSpoj/uxbA== X-ME-Sender: X-Sasl-enc: 0iErpoCTjtqms/td48kLrOqvwsKYsVTbBokDX/LoHhcM 1491413195 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 01ECE24371; Wed, 5 Apr 2017 13:26:34 -0400 (EDT) Subject: Re: CREATE DOMAIN should also include an example of use with functions To: =?UTF-8?Q?Eric_Br=c3=a9chemier?= References: <20170202204935.1400.31181@wrigleys.postgresql.org> Cc: pgsql-docs@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <51d06cb0-f782-83b3-62ac-62f45b95664c@2ndquadrant.com> Date: Wed, 5 Apr 2017 13:26:34 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 4/5/17 06:09, Eric Bréchemier wrote: > Hi Peter, > > I find no mention of operators on this page: > > "This example creates the us_postal_code data type and then uses the > type in a table definition." > https://www.postgresql.org/docs/9.6/static/sql-createdomain.html#AEN79068 It uses the ~ operator in the domain definition in the example. Perhaps you should send in an example of your own to explain what you mean. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs