X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AFB7F3A593F for ; Tue, 11 Jan 2005 14:52:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99421-08 for ; Tue, 11 Jan 2005 14:52:39 +0000 (GMT) Received: from gpmail.gphq.genpathpharma.com (67.109.105.227.ptr.us.xo.net [67.109.105.227]) by svr1.postgresql.org (Postfix) with ESMTP id 7E0293A58EF for ; Tue, 11 Jan 2005 14:52:41 +0000 (GMT) x-mimeole: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Single row tables Date: Tue, 11 Jan 2005 09:50:11 -0500 Message-ID: <7A4ADADFC8AFF0478D47F63BEDD57CE33A339A@gpmail.gphq.genpathpharma.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] Single row tables Thread-Index: AcT37F7Bq3TD/F32R42gTHr2q6BHkQAAEdFQ From: "Dmitri Bichko" To: =?iso-8859-1?Q?K=D6PFERL_Robert?= Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/41 X-Sequence-Number: 19829 I suppose you could put a check constraint that forces a single value on = a column with a unique index? Or an insert trigger that always inserts = the same value into a unique field. Out of curiosity, why do you need to do this? Dmitri -----Original Message----- From: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of K=D6PFERL Robert Sent: Tuesday, January 11, 2005 9:46 AM Cc: pgsql-sql@postgresql.org Subject: [SQL] Single row tables Importance: High Hi, with what constraint or how can I ensure that one of my tables has exact = one record or 0..1 records? ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings