Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 987C01E9AFAC for ; Mon, 12 Dec 2011 02:26:50 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RZzLd-0004dl-TY for pgsql-bugs@postgresql.org; Mon, 12 Dec 2011 06:26:50 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBC6QUPJ027576; Mon, 12 Dec 2011 01:26:30 -0500 (EST) To: Andres Freund cc: pgsql-bugs@postgresql.org, Jochen Erwied Subject: Re: Postgresql 9.1.2 - abnormal memory usage In-reply-to: <201112120145.42463.andres@anarazel.de> References: <396904450.20111211221529@erwied.eu> <201112120045.23211.andres@anarazel.de> <201112120145.42463.andres@anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 12 Dec 2011 01:45:42 +0100" Date: Mon, 12 Dec 2011 01:26:30 -0500 Message-ID: <27575.1323671190@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -3.4 (---) X-Archive-Number: 201112/75 X-Sequence-Number: 31886 Andres Freund writes: > In 3b8161723c645853021b57330dd2ea0484ec6131 Heikki made DatumGetInetP unpack > toasted values. Unfortunately the btree support functions for the inet type > didn't free memory which they have to do in contrast to about everything else. > I fixed a few more functions than strictly necessary but I guess thats ok. Seems like the correct fix is to revert these functions to the former behavior, ie they should be using the PP macros not the unpacking ones. regards, tom lane