Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 36F53632868 for ; Sat, 24 Jul 2010 08:47:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 55774-02 for ; Sat, 24 Jul 2010 11:47:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id E5EE56326B4 for ; Sat, 24 Jul 2010 08:47:37 -0300 (ADT) Received: by pvc7 with SMTP id 7so3882980pvc.19 for ; Sat, 24 Jul 2010 04:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=RtxLvtCFkFGBmGXkPcd1PdSORnvOKlttxs+egFScV4Y=; b=biDe9cyRhvZ7RFd1ksKv1UOaMImYwKXmF2BC25k4GUbzDd++2IM48sYx+Pvo76ERa5 I4gh34mYPWwgie/aEujhjzZzCNAy4QqLVplC9TAYRFsfmwyqWfxFX9AZet9xeBOKp6oS NHaASp8g6foBVTxu3JcquW9dtabGCBj3Y5hdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=pkiewKioyMU9bW9MZ4LnC1HwyKVhMD0yQ9jCUHHyvTFpxCD61NPIuztDUo2vZ2CXNt qyyHaphamC1xjfhgseqXRp1giQTnSQNx8U7+pa/B8BGKv5+4TENYfYyCDnjHSlhgi0P8 dydM67dQvzxstdJNWzIWVInP9i0I7EMmCzJWM= Received: by 10.142.199.20 with SMTP id w20mr5686752wff.250.1279972056075; Sat, 24 Jul 2010 04:47:36 -0700 (PDT) Received: from eddie (c-67-186-241-216.hsd1.ut.comcast.net [67.186.241.216]) by mx.google.com with ESMTPS id c11sm1528281rvf.3.2010.07.24.04.47.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Jul 2010 04:47:34 -0700 (PDT) Message-ID: <4c4ad2d6.0bb48c0a.7970.5678@mx.google.com> Date: Sat, 24 Jul 2010 05:47:24 -0600 From: Joshua Tolley To: Andreas Cc: pgsql-sql@postgresql.org Subject: Re: howto delete using a join ? References: <4C4A66A5.9070609@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bCsyhTFzCvuiizWE" Content-Disposition: inline In-Reply-To: <4C4A66A5.9070609@gmx.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/102 X-Sequence-Number: 34415 --bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 24, 2010 at 06:05:57AM +0200, Andreas wrote: > Hi, > > is there a way to delete from a table using information from another =20 > table to decide if a row should be dropped? Yes. See DELETE ... USING http://www.postgresql.org/docs/8.4/interactive/sql-delete.html -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkxK0swACgkQRiRfCGf1UMPoyQCeL+ov/imte/+lmao5koysUsiu gWQAn2yzfxAcX3wh88M3oJZL9HDvl50R =tSvh -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--