Given that you reuse Postgres' tests and LLM have been clearly trained on Postgres' three decades of contributions, this may constitute a license violation. Unless you include the original license of course. From a human level I also understand how you ended up with a less permissive license.
License for test might be subject to debate, because afaik the project is merely running them.
but yes the test files should be presented under their original licence.