Re: simple query running for ever - Mailing list pgsql-performance

From Justin Pryzby
Subject Re: simple query running for ever
Date
Msg-id 20200616223330.GL20404@telsasoft.com
Whole thread Raw
In response to Re: simple query running for ever  (Andreas Joseph Krogh <andreas@visena.com>)
List pgsql-performance
On Wed, Jun 17, 2020 at 12:10:37AM +0200, Andreas Joseph Krogh wrote:
> På onsdag 17. juni 2020 kl. 00:05:26, skrev Justin Pryzby <pryzby@telsasoft.com>: 
> On Tue, Jun 16, 2020 at 08:35:31PM +0000, Nagaraj Raj wrote:
>  > I wrote a simple query, and it is taking too long, not sure what is wrong in it, even its not giving EXPLAIN
ANALYZE.
>  >
>  > from "cms_prospects".PROSPECT T0
>  > left join "cms_prospects".INDIVIDUAL_DEMOGRAPHIC T2 on T0."individual_entity_proxy_id" =
T2."individual_entity_proxy_id"
> 
>  Pardon me for saying so, but this query seems silly.
> 
>  It's self-joining a table on its PK, which I don't think could ever be useful.
> 
> Where is the self-join? 

Sorry, I misread.

I see now that "cms_prospects" refers to the database.

-- 
Justin



pgsql-performance by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: simple query running for ever
Next
From: Laurenz Albe
Date:
Subject: Re: simple query running for ever