Re: commands subdirectory continued -code cleanup - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: commands subdirectory continued -code cleanup
Date
Msg-id 3CC0721F.36EC6529@redhat.com
Whole thread Raw
In response to commands subdirectory continued -code cleanup  (John Gray <jgray@azuli.co.uk>)
Responses Re: commands subdirectory continued -code cleanup  (John Gray <jgray@azuli.co.uk>)
List pgsql-hackers
John Gray wrote:
> 
> and two macros:
> 
> RECURSE_OVER_CHILDREN(relid);
> AlterTableDoSomething(childrel,...);
> RECURSE_OVER_CHILDREN_END;
> 
> (this seems more straightforward than passing the text of the function
> call as a macro parameter).
> 

Suggestion:

RECURSE_OVER_CHILDREN(inh, relid)
{AlterTableDoSomething(childrel,...);
}


-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: commands subdirectory continued -code cleanup
Next
From: Joe Conway
Date:
Subject: Re: Odd(?) RI-trigger behavior