Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIdMF-0000Yu-61 for pgsql-general@arkaria.postgresql.org; Sun, 09 Jul 2023 22:58:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIdMD-0006Kt-GY for pgsql-general@arkaria.postgresql.org; Sun, 09 Jul 2023 22:58:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIdMC-0006Kj-Qk for pgsql-general@lists.postgresql.org; Sun, 09 Jul 2023 22:58:21 +0000 Received: from rs6162.luxsci.com ([162.142.76.255]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qIdM4-002xir-Cy for pgsql-general@lists.postgresql.org; Sun, 09 Jul 2023 22:58:16 +0000 Received: from pfortin.com (h231.250.89.75.dynamic.ip.windstream.net [75.89.250.231]) (authenticated bits=0) by rs6162.luxsci.com (8.15.2/8.14.9) with ESMTPSA id 369Mw7aS415597 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 9 Jul 2023 22:58:08 GMT Date: Sun, 9 Jul 2023 18:58:07 -0400 From: pf@pfortin.com To: pgsql-general@lists.postgresql.org Subject: INSERT UNIQUE row? Message-ID: <20230709185807.1bc9afd9.pfortin@pfortin.com> X-Mailer: Claws Mail 4.1.1git47 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Lux-Comment: Message 369Mw7aS415597 sent by user #22427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pfortin.com; h=date:from:to:subject:message-id:mime-version:content-type:content-transfer-encoding; s=dkim; bh=Gc/zKtfl1Sf0j4pqb4qSzQ+uSWO4Y6jan5QrVZFuJKw=; b=cO7QgVZ5rQdVU20fXhxZlNdlqTLHx+7ut7pqCaT6doAwHpJLpSXYf9NHoiYU49trx6C6fTMI0nt58+kTLlYiGc+Tgi4zvVpvqw8FFcWDzxFL1yJgGMXEzw7odvrQ5qv9fHcgZ6CuOvxYG/dFxZF6am3Zg9Y1LQE0huqwVki08dQ= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Trying to figure out how to insert new property addresses into an existing table. Can a UNIQUE constraint be applied to an entire row? Adding UNIQUE to each column won't work in such a case since there are multiple properties * on the same street * in the same town * with the same number on different streets * etc... Each row is only unique as an entity; but the columns are not... Is this covered in the docs? Thanks, Pierre