hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hornn <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: Karthifoyzur hawq 368
Date Tue, 23 Feb 2016 21:52:06 GMT
Github user hornn commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/375#discussion_r53856594
  
    --- Diff: src/backend/tcop/postgres.c ---
    @@ -4652,7 +4652,22 @@ PostgresMain(int argc, char *argv[], const char *username)
     		}
     
     		IdleTracker_DeactivateProcess();
    -		firstchar = ReadCommand(&input_message);
    +		/*
    +		 * During read command, if we have any exception we want to reactivate the process
    +		 * before falling back to postgres main exception handler.
    +		 */
    +		PG_TRY();
    +		{
    +			firstchar = ReadCommand(&input_message);
    +		}
    +		PG_CATCH();
    +		{
    +			IdleTracker_ActivateProcess();
    +			elog(LOG, "Caught exception while reading command");
    +			PG_RE_THROW();
    +		}
    +        PG_END_TRY();
    --- End diff --
    
    fix indentation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message