Re: llvm dependency and space concerns

Christoph Moench-Tegeder <cmt@burggraben.net>

From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: Jeremy Schneider <schneider@ardentperf.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-01-11T23:33:35Z
Lists: pgsql-hackers
## Jeremy Schneider (schneider@ardentperf.com):

> I'm running Postgres in containers, and recently did some analysis of
> the total container sizes. I posted some analysis over on the debian
> packaging mailing list [1] [2]. The TLDR is that LLVM alone makes up
> 33% of a postgres container's bytes (143MB / 434MB) [1].

Does that even matter compared with the size of the database itself?

> I haven't yet looked closely, but my assumption is that the --with-llvm
> flag may not work the same. I'm going to spend some time taking a look,
> but if someone knows off the top of their head and can give me a head
> start that would be appreciated!

Have a look at the RPM packages and how they split off postgresql-llvmjit
there:
https://git.postgresql.org/gitweb/?p=pgrpms.git;a=tree;f=rpm/redhat/main/non-common/postgresql-17/main;hb=HEAD

Regards,
Christoph

-- 
Spare Space