Unix Technical Forum

Fix resowner.c pgindent mess

This is a discussion on Fix resowner.c pgindent mess within the Pgsql Patches forums, part of the PostgreSQL category; --> This file was whacked by pgindent before it knew it shouldn't remove braces around single statements (for PG_TRY macros). ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 11:13 PM
Alvaro Herrera
 
Posts: n/a
Default Fix resowner.c pgindent mess

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)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 11:13 PM
Neil Conway
 
Posts: n/a
Default Re: Fix resowner.c pgindent mess

Alvaro Herrera wrote:
> 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.


Thanks, applied.

-Neil

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com