Re: Re: [PATCH 1/5] Centralize Assert* macros into c.h so its common between backend/frontend
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andres Freund <andres@2ndquadrant.com>, pgsql-hackers@postgresql.org
Date: 2013-01-18T15:43:06Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes: > One slight problem with this is the common port/*.c idiom would require > an extra include: > #ifndef FRONTEND > #include "postgres.h" > #else > #include "postgres_fe.h" > #include "pgassert.h" /* <--- new line required here */ > #endif /* FRONTEND */ > If this is seen as a serious issue (I don't think so) then we would have > to include pgassert.h into postgres_fe.h which would make the whole > thing pointless (i.e. the same as just having the definitions in c.h). We'd only need to add that when/if the file started to use asserts, so I don't think it's a problem. But still not sure it's better than just putting the stuff in c.h. regards, tom lane
Commits
-
Prevent creation of postmaster's TCP socket during pg_upgrade testing.
- 78a5e738e97b 9.3.0 cited