pg_pathman icon indicating copy to clipboard operation
pg_pathman copied to clipboard

used too much private memory

Open syhxz opened this issue 7 years ago • 0 comments

Problem description

Explain your problem here (it's always better to provide reproduction steps) ...

Hi ,in our database,we have 10w+ partition tables ,

select count(1) from pathman_partition_list ;

count

100000 (1 row)

when we run a simaple query #select * from tt_pathmantest where id=1003;

pmap shows that this process have 281MB private memory,I think it is terrible,especially in a busy system.if we can put pathman config data in shared memary,but not private memory? $ pmap -d 18155 18155: postgres: pg955: postgres pgbench [local] idle
Address Kbytes Mode Offset Device Mapping mapped: 54538484K writeable/private: 281720K shared: 54123512K

Environment

pathman version is 1.3,but we tested in 1.4 also have this problem

syhxz avatar Feb 21 '19 10:02 syhxz