Re: Queries never returning... - Mailing list pgsql-general

From Tom Lane
Subject Re: Queries never returning...
Date
Msg-id 21471.1135800624@sss.pgh.pa.us
Whole thread Raw
In response to Queries never returning...  (John McCawley <nospam@hardgeus.com>)
Responses Re: Queries never returning...
List pgsql-general
John McCawley <nospam@hardgeus.com> writes:
> I am currently having a problem with a query never finishing (or at
> least not in a reasonable amount of time.)  I have had similar problems
> to this in Postgres over the past several years, and I have always found
> workarounds.  This time I'd like to actually understand what is happening.

If that join SELECT comes back in a reasonable period of time, then the
UPDATE shouldn't take too long either --- they're both doing about the
same thing as far as performing the join goes.  The differential would
have to be index updates or triggers fired by the UPDATE.  I'd bet on
the latter, but since you've told us zip about your schema or what PG
version this is, it's impossible to speculate further...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: C Function Problem for bytea output
Next
From: Matthew Hixson
Date:
Subject: importing an Oracle database into Postgres