pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: vikrant@chemquick.com
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Mail about select
Date: Fri, 04 Jun 1999 10:33:18 -0400
Message-ID: <16871.928506798@sss.pgh.pa.us> (raw)
In-Reply-To: <375787DB.65CCEF22@chemquick.com>

Vikrant Rathore <vikrant@chemquick.com> writes:
> now i am firing a query like this:

> select r.uname from radius r, radiustemp rt where r.uname<>rt.uname and
> r.logdate<>rt.logdate and r.logtime<>rt.logtime;

> After some time i get  response
> "Segmentation Error"
> core(sumped)

How big are your tables?  That query will probably produce an output
row for almost every combination of a row from radius with a row from
radiustemp, which might overflow the allowed memory for your
application.

I suppose what you really want is to find the rows in radius that do
not have duplicates in radiustemp, but that query won't do it...

			regards, tom lane



view thread (2+ messages)

Message-ID: <16871.928506798@sss.pgh.pa.us>
Permalink:  ../16871.928506798@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16871.928506798@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vikrant@chemquick.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Mail about select
  In-Reply-To: <16871.928506798@sss.pgh.pa.us>
  References: <375787DB.65CCEF22@chemquick.com> <16871.928506798@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox