Re: Open 7.1 items - Mailing list pgsql-hackers

From Philip Warner
Subject Re: Open 7.1 items
Date
Msg-id 3.0.5.32.20010128125301.02f687e0@mail.rhyme.com.au
Whole thread Raw
In response to Re: Open 7.1 items  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: Open 7.1 items
List pgsql-hackers
At 07:24 26/01/01 +0900, Tatsuo Ishii wrote:
>> Fix for pg_dump of bad system tables
>
>Ok. I have made patches for fixing some of pg_dump problems(see
>attached patches). 
...
>Also I'm not quite sure "#arg" (stringification) is
>portable enough in all platforms.)  

The patch looks fine to me, but I have no idea how portable #arg is - does
anybody else have some facts on the matter: 

+#define AGG_NOTICE(arg) {\
+               fprintf(stderr, "Notice: aggregate \"%s\"(oid %s) is not
dumped.\n",agginfo[i].aggname, a
+       fprintf(stderr, "Reason: " #arg);\
+       fprintf (stderr, " (oid %s) not found.\n",agginfo[i].arg);\
+       }
+

It's easy enough to change the macros to take 2 params, and that would be
my inclination if it's not a solid part of the C standard (for any
non-trivial definintion of 'solid').


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Re: [GENERAL] MySQL -> Postgres dump converter
Next
From: Tom Lane
Date:
Subject: Re: Open 7.1 items