Skip to main content
Question

PostgreSQL Query - Never Times Out


jbradfor
Contributor
Forum|alt.badge.img+7

We use a PostgreSQL connection to access our GreenPlum environment to execute a SQL statement to pull non-spatial point data. Normal Query runtime, runs fine.

When the tables involved in the SQL are under heavy load, the query slows down a lot. It then NEVER returns anything and will continue to run until we stop it.

So, my question is. When we setup connections in FME desktop, is there any way to setup a MAX connection timeout or Query timeout?

2 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • March 20, 2018

Hi @jbradfor, if you're able to use an SQLCreator or SQLExecutor, you might be able to set the timeout there 

set statement_timeout to 100;

jbradfor
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 3, 2018
fmelizard wrote:

Hi @jbradfor, if you're able to use an SQLCreator or SQLExecutor, you might be able to set the timeout there 

set statement_timeout to 100;
I was able to get this to work.  Thanks.

 

 

FME_SQL_DELIMITER ;
set statement_timeout to 1800000;  --30 min
select distinct...

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings