Re: commands subdirectory continued -code cleanup

From: Fernando Nasser <fnasser(at)redhat(dot)com>
To: John Gray <jgray(at)azuli(dot)co(dot)uk>
Cc: Hackers List <pgsql-hackers(at)postgresql(dot)org>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Subject: Re: commands subdirectory continued -code cleanup
Date: 2002-04-19 19:38:07
Message-ID: 3CC0721F.36EC6529@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-04-19 20:29:33 Re: Odd(?) RI-trigger behavior
Previous Message Tom Lane 2002-04-19 19:34:12 Re: commands subdirectory continued -code cleanup