Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewnoF-0000qa-Lq for pgsql-general@arkaria.postgresql.org; Fri, 16 Mar 2018 11:46:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewnoC-0004s8-PA for pgsql-general@arkaria.postgresql.org; Fri, 16 Mar 2018 11:46:04 +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.89) (envelope-from ) id 1ewnoC-0004rz-Gu for pgsql-general@lists.postgresql.org; Fri, 16 Mar 2018 11:46:04 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewno9-0007fa-MB for pgsql-general@lists.postgresql.org; Fri, 16 Mar 2018 11:46:03 +0000 Received: from [192.168.222.106] (p5B3133B8.dip0.t-ipconnect.de [91.49.51.184]) by mail.i-mark.de (Postfix) with ESMTPSA id 355471580874 for ; Fri, 16 Mar 2018 12:45:54 +0100 (CET) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 91.49.51.184) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.222.106] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: Circle and box intersect To: pgsql-general@lists.postgresql.org References: <20180315204851.GU2416@tamriel.snowman.net> <206B6740-DCC5-4491-A87D-EEF5CBF8EA6B@open-lab.org> <20180315220512.GV2416@tamriel.snowman.net> <20180316021411.GX2416@tamriel.snowman.net> <23415.1521170582@sss.pgh.pa.us> <5aab95c9.8587df0a.61cae.56f9@mx.google.com> From: Andreas Kretschmer Message-ID: <088af4a1-47ae-7cf8-1b0f-53917c3dcbee@a-kretschmer.de> Date: Fri, 16 Mar 2018 12:45:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5aab95c9.8587df0a.61cae.56f9@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 16.03.2018 um 11:00 schrieb Martin Moore: > PG10 > > Is there an operator to determine if a box and circle intersect? > I can only see box && box and can use centre+rad and distance to calculate > circle:circle. > > Thanks. > > please don't hijack other mail-threads by answering & changing the subject, your mail still contains references to "SELECT .. FOR UPDATE: find out who locked a row" Create a new mail for a new thread! to your question: consider PostGIS and it's functions st_intersects() Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com