Clarification:

As I see it, postgresql already includes a small amount of Apache 2.0 licensed code.

So it’s not as big an issue as I originally thought.

https://github.com/search?q=repo%3Apostgres%2Fpostgres%20apa...

example:

https://github.com/postgres/postgres/blob/88824e68611a88a4ef...