Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: bloated hea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 19 of 22 Topic 9336 of 10966
Post > Topic >>

Re: bloated heapam.h

by Zdenek.Kotala@[EMAIL PROTECTED] (Zdenek Kotala) May 12, 2008 at 02:22 PM

This is a multi-part message in MIME format.

--Boundary_(ID_uiYOAIHJEVykO/L6Rto/bQ)
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT

Alvaro Herrera wrote:
> Alvaro Herrera wrote:
> 
>> Oops :-(  I just noticed that I removed bufmgr.h from bufpage.h, which
>> is a change you had objected to previously :-(
> 
> However, it seems the right fix is to move BufferGetPageSize and
> BufferGetPage from bufpage.h to bufmgr.h.

+1 It makes more sense.

> (Digging further, it seems like bufpage.h should also include transam.h
> in order to get TransactionIdIsNormal ... I start to wonder how many
> problems of this nature we have on our headers.  Without having a way to
> detect whether the defined macros are valid, it seems hard to check
> programatically, however.)
> 

I attached script which should check it. In first step it runs C
preprocessor on 
each header (postgres.h is included as well). The output from first step
is 
processed again with preprocessor and define.h is included. Define.h
contains 
"all" used macros in following format:

#define SIGABRT "NOT_EXPANDED_SIGABRT"

Main problem is how to generate define.h. I used following magic:

grep "^#define" `find . -name "*.h"` | cut -d" "  -f 2 | cut -f 1 | cut -f
1 -d"("

but it generates some noise as well. Maybe some Perl or AWK magic should
be better.

		Zdenek

--Boundary_(ID_uiYOAIHJEVykO/L6Rto/bQ)
Content-type: application/x-shellscript; name=test.sh
Content-transfer-encoding: BASE64
Content-disposition: inline; filename=test.sh

IyEvYmluL2tzaAoKZm9yIEZJTEUgaW4gYGZpbmQgLiAtbmFtZSAiKi5oImA7
IGRvCgllY2hvICJQcm9jZXNzaW5nICR7RklMRX0iCgkKICAgICAgICBlY2hv
ICIjaW5jbHVkZSBcInBvc3RncmVzLmhcIiIgPiAgX190ZW1wLmgKCWNhdCAi
JHtGSUxFfSIgPj4gX190ZW1wLmgKCWVjaG8gIiNpbmNsdWRlIFwiZGVmaW5l
LmhcIiIgPiBfX3RlbXAyLmgKCWNjIC1FIC1JIC4gX190ZW1wLmggID4+IF9f
dGVtcDIuaAoJY2MgLUUgLUkgLiBfX3RlbXAyLmggfCBncmVwIE5PVF9FWFBB
TkQKZG9uZQoK

--Boundary_(ID_uiYOAIHJEVykO/L6Rto/bQ)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--Boundary_(ID_uiYOAIHJEVykO/L6Rto/bQ)--
 




 22 Posts in Topic:
bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-09 14:56:10 
Re: bloated heapam.h
Zdenek.Kotala@[EMAIL PROT  2008-05-10 13:52:28 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-10 15:26:16 
Re: bloated heapam.h
tgl@[EMAIL PROTECTED] (T  2008-05-10 17:10:45 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-11 00:30:23 
Re: bloated heapam.h
tgl@[EMAIL PROTECTED] (T  2008-05-11 00:49:59 
Re: bloated heapam.h
tgl@[EMAIL PROTECTED] (T  2008-05-11 14:43:58 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-11 20:06:42 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-11 20:21:53 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-11 20:28:53 
Re: bloated heapam.h
tgl@[EMAIL PROTECTED] (T  2008-05-11 20:35:16 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-11 21:04:39 
Re: bloated heapam.h
tgl@[EMAIL PROTECTED] (T  2008-05-11 20:30:59 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-12 12:10:22 
Re: bloated heapam.h
Zdenek.Kotala@[EMAIL PROT  2008-05-15 17:48:58 
Re: bloated heapam.h
Zdenek.Kotala@[EMAIL PROT  2008-05-12 21:52:27 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-12 16:02:53 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-13 11:42:00 
Re: bloated heapam.h
Zdenek.Kotala@[EMAIL PROT  2008-05-12 14:22:11 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-12 12:13:50 
Re: bloated heapam.h
Zdenek.Kotala@[EMAIL PROT  2008-05-12 21:08:05 
Re: bloated heapam.h
alvherre@[EMAIL PROTECTED  2008-05-12 15:26:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 12:01:54 CST 2008.