Thread: pg_listener attribute number #defines

pg_listener attribute number #defines

From
Robert Haas
Date:
It appears that, for no particularly good reason, pg_listener.h
deviates from the usual convention for declaring attribute number
constants.  Normally, it's

#define Anum_{catalog-name}_{column-name}  {attribute-number}

pg_listener.h, however substitutes a different string that is similar,
but not the same as, the column name.

Suggested patch attached.

...Robert

Attachment

Re: pg_listener attribute number #defines

From
Peter Eisentraut
Date:
On Wednesday 24 June 2009 08:09:57 Robert Haas wrote:
> It appears that, for no particularly good reason, pg_listener.h
> deviates from the usual convention for declaring attribute number
> constants.  Normally, it's
>
> #define Anum_{catalog-name}_{column-name}  {attribute-number}
>
> pg_listener.h, however substitutes a different string that is similar,
> but not the same as, the column name.
>
> Suggested patch attached.

Fixed.