Skip site navigation (1) Skip section navigation (2)

Re: [COMMITTERS] pgsql: Clean up the #include mess a little.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Ants Aasma <ants(dot)aasma(at)eesti(dot)ee>
Cc: Greg Stark <stark(at)mit(dot)edu>, Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Clean up the #include mess a little.
Date: 2011-09-06 19:18:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackers
Excerpts from Ants Aasma's message of mar sep 06 12:40:04 -0300 2011:
> On Mon, Sep 5, 2011 at 4:55 PM, Greg Stark <stark(at)mit(dot)edu> wrote:
> > What I wouldn't mind seeing is a graph of all includes and what they
> > include. This might help figure out what layering violations there are
> > like the one that caused this mess. I think I've seen tools to do this
> > already somewhere.
> I whipped together a quick Python script to do this. Attached is the
> Python script (requires pydot) and the result of running it on includes/.
> I didn't attach the png version of the output because it was 7MB.
> If rendering all includes at once doesn't give a good overview it can
> also select a subset through traversing dependencies. For example:
> -i include/ \
>   --select="storage/spin.h+*,access/xlog.h+*" output.png
> This will render everything that directly or indirectly depends  on those
> two headers. See --help for details.

Wow, interesting, thanks.

What this says to me is that we should do something about execnodes.h
and some other nodes file (parsenodes.h I think).

I wonder what happens if files in the same subdir are grouped in a
subgraph.  Is that possible?

Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2011-09-06 19:31:13
Subject: Re: timezone GUC
Previous:From: Bruce MomjianDate: 2011-09-06 19:14:53
Subject: Re: timezone GUC

pgsql-committers by date

Next:From: Bruce MomjianDate: 2011-09-06 19:21:04
Subject: pgsql: Fix plpgsql "PERFORM" markup.
Previous:From: Tom LaneDate: 2011-09-06 18:53:29
Subject: pgsql: Avoid possibly accessing off the end of memory in SJIS2004conve

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group