Received: from koza.acecape.com (koza2.acecape.com [66.9.36.222]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0N3oEl01178 for ; Tue, 22 Jan 2002 22:50:14 -0500 (EST) (envelope-from lists@natserv.com) Received: from p65-147.acedsl.com (p65-147.acedsl.com [66.114.65.147]) by koza.acecape.com (8.10.1/8.9.3) with ESMTP id g0N3oCK15007; Tue, 22 Jan 2002 22:50:13 -0500 (EST) Date: Tue, 22 Jan 2002 22:52:48 -0500 (EST) From: Francisco Reyes X-X-Sender: fran@zoraida.natserv.net To: Christopher Kings-Lynne cc: Manuel Lemos , PostgresSQL PHP list Subject: Re: "SQL" REPLACE SYNTAX In-Reply-To: Message-ID: <20020122225144.S43699-100000@zoraida.natserv.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200201/52 X-Sequence-Number: 858 On Wed, 23 Jan 2002, Christopher Kings-Lynne wrote: > Here's an idea: look at their code to see what kind of SQL jiggery pokery > they needed to implement it and then implement it ourselves... I wish PostgreSQL got this functionality. > > BTW, from my estimates you'd need at least 4 - 6 sql queries to simulate the > REPLACE syntax for Postgres, so why on earth would you use it? > Chris Why so many? It is simple enough to attempt a delete and then do an insert.