From: | Greg Stark <stark(at)mit(dot)edu> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Providing catalog view to pg_hba.conf file - Patch submission |
Date: | 2015-03-02 19:20:31 |
Message-ID: | CAM-w4HO0cDSOndSG=SEsHJRqx2TSE+qesLCvM=Q3Xexn_9WJ=w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Mar 2, 2015 at 4:36 PM, Greg Stark <stark(at)mit(dot)edu> wrote:
>
> So I didn't get the memo about SFRM_Materialize. Here's a rewrite of this using that interface which seems to test ok up to 100k. At that point I start running into memory errors on reading the HBA file so I guess that's an indication that's large enough to stop worrying about it.
Hm. I'm wondering why I'm getting out of memory errors now with just
25k lines in pg_hba.conf. It looks like the HbaLine struct is "only"
472 bytes so the list should only be occupying about 11MB. In fact
it's occupying about a gigabyte:
TopMemoryContext: 8192 total in 1 blocks; 5264 free (1 chunks); 2928 used
ident parser context: 0 total in 0 blocks; 0 free (0 chunks); 0 used
hba parser context: 956300288 total in 126 blocks; 1694136 free (82
chunks); 954606152 used
The lines in my pg_hba.conf don't have any databases or roles listed
so there shouldn't be any tokens taking up space either. I just copied
this line 25,000 times:
local all all trust
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2015-03-02 19:20:43 | Re: INSERT ... ON CONFLICT {UPDATE | IGNORE} 2.0 |
Previous Message | David Kubečka | 2015-03-02 19:19:31 | Weirdly pesimistic estimates in optimizer |