Fix resowner.c pgindent mess - Mailing list pgsql-patches

From Alvaro Herrera
Subject Fix resowner.c pgindent mess
Date
Msg-id 20050405193415.GA12571@dcc.uchile.cl
Whole thread Raw
Responses Re: Fix resowner.c pgindent mess
List pgsql-patches
This file was whacked by pgindent before it knew it shouldn't remove
braces around single statements (for PG_TRY macros).  This patch fixes
it.  Please apply.

Index: src/backend/utils/resowner/resowner.c
===================================================================
RCS file: /home/alvherre/cvs/pgsql/src/backend/utils/resowner/resowner.c,v
retrieving revision 1.11
diff -c -r1.11 resowner.c
*** src/backend/utils/resowner/resowner.c    25 Mar 2005 18:30:27 -0000    1.11
--- src/backend/utils/resowner/resowner.c    4 Apr 2005 22:07:54 -0000
***************
*** 158,164 ****

      save = CurrentResourceOwner;
      PG_TRY();
!     ResourceOwnerReleaseInternal(owner, phase, isCommit, isTopLevel);
      PG_CATCH();
      {
          CurrentResourceOwner = save;
--- 158,166 ----

      save = CurrentResourceOwner;
      PG_TRY();
!     {
!         ResourceOwnerReleaseInternal(owner, phase, isCommit, isTopLevel);
!     }
      PG_CATCH();
      {
          CurrentResourceOwner = save;

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude."                              (Brian Kernighan)

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: DELETE ... USING
Next
From: Neil Conway
Date:
Subject: Re: Fix resowner.c pgindent mess